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   

你可能感兴趣的:(Git忽略 UserInterfaceState.xcuserstate)