按照如下步骤执行(终端命令)

1. git status

modified:   LovegoMall.xcworkspace/xcuserdata/Tiny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
其中Breakpoints_v2.xcbkptlist就是我们想要忽略的文件

2. 删除缓存的Breakpoints_v2.xcbkptlist文件
git rm --cached LovegoMall.xcworkspace/xcuserdata/Tiny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

3. 删除远程文件
git commit -m LovegoMall.xcworkspace/xcuserdata/Tiny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

4. git push

5. git status 查看文件是否还存在

相关文章:

  • 2021-10-10
  • 2021-06-27
  • 2021-04-20
  • 2021-09-25
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-08-28
  • 2022-01-10
  • 2021-12-13
相关资源
相似解决方案