終端命令:git
1.git rm --cachedxcode
2.git commit -m "Removed file that shouldn't be tracked"spa
3.git pushcode
或者以下面所示:it
$ git rm --cached iLedger.xcodeproj/project.xcworkspace/xcuserdata/Alex.xcuserdatad/UserInterfaceState.xcuserstate $ git commit -m "Removed the stupid strange file that shouldn't be tracked" $ git push