终端命令:
1.git rm --cached
2.git commit -m "Removed file that shouldn't be tracked"
3.git push
或者如下面所示:
$ 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