- 在终端键入
[YourProjectName].xcodeproj/project.xcworkspace/xcuserdata/[YourUsername].xcuserdatad/UserInterfaceState.xcuserstate
- 在终端键入
git commit -m "Removed file that shouldn't be tracked"
- 在
.gitignore
文件中加入如下几行
project.xcworkspace
xcuserdata
UserInterfaceState.xcuserstate
project.xcworkspace/
xcuserdata/
UserInterface.xcuserstate