按照以下步驟執行(終端命令)git
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 查看文件是否還存在