Git忽略 UserInterfaceState.xcuserstate

  • 在终端键入
[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   

推荐阅读更多精彩内容