一、在同 .Git目录下创建.gitignore文件。在文件中加入如下内容:

*.xcuserstate  

project.xcworkspace  

xcuserdata  

UserInterfaceState.xcuserstate  

project.xcworkspace/  

xcuserdata/  

UserInterface.xcuserstate  

 

二、退出xcdoe, 打开终端(Terminal),进入项目目录下。

三、在终端键入  

git rm --cached [YourProjectName].xcodeproj/project.xcworkspace/xcuserdata/[ YourUsername].xcuserdatad/UserInterfaceState.xcuserstate

 

四、在终端键入  

git commit -m "Removed file that shouldn't be tracked"

 

五、重新打开Xcode 

git commit
git push

 

相关文章:

  • 2021-07-24
  • 2022-12-23
  • 2022-02-07
  • 2021-08-17
  • 2021-12-17
  • 2021-09-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-06-25
相关资源
相似解决方案