删除git commit 的 UserInterfaceState.xcuserstate 文件
生活随笔
收集整理的這篇文章主要介紹了
删除git commit 的 UserInterfaceState.xcuserstate 文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
為什么80%的碼農都做不了架構師?>>> ??
1.首先找到UserInterfaceState.xcuserstate文件的路徑:
1.打開項目,找到"項目名.xcworkspace"文件
2.右鍵-->顯示包內容-->進入"xcuserdata" -->進入"用戶名.xcuserdatad"-->"UserInterfaceState.xcuserstate" 拿到路徑
?
2.退出Xcode,打開命令行,進入項目目錄下
?
3.命令行輸入 git rm --cached UserInterfaceState.xcuserstate文件的路徑
?
4.命令行提交:? git commit -m "刪除討厭的文件"
?
5.在項目文件夾下,找到.gitignore文件并打開,在其中添加以下內容:
?
*.xcuserstate?
project.xcworkspace?
xcuserdata?
UserInterfaceState.xcuserstate?
project.xcworkspace/?
xcuserdata/?
UserInterface.xcuserstate??
?
6.做commit 和 push 操作
?
7.搞定
?
轉載于:https://my.oschina.net/biyu6/blog/551109
總結
以上是生活随笔為你收集整理的删除git commit 的 UserInterfaceState.xcuserstate 文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS 获取网络状态
- 下一篇: 我的 FPGA 学习历程(11)—— 实