エラー
エラーが発生しました
error: The following untracked working tree files would be overwritten by checkout:
MyProject/xcuserdata/shingo.nakanishi.xcuserdatad/UserInterfaceState.xcuserstate
Please move or remove them before you can switch branches.
Aborting
私はこれを試します
(以下の追跡されていない作業ツリー ファイルは、チェックアウトによって上書きされます)
git rm --cached MyProject/xcuserdata/shingo.nakanishi.xcuserdatad/UserInterfaceState.xcuserstate
と
git clean -d -fx ""
git commit -a
git push
「UserInterfaceState.xcuserstate」ファイルが存在しない場合、これが機能します
しかし、Xcode はすぐに UserInterfaceState.xcuserstate を作成します。
Xcode を使用すると、Xcode は UserInterfaceState.xcuserstate ファイルを作成します。
git clean -d -fx ""
だから、各チェックアウトブランチ、私は毎回しなければなりません。
私の ~/.gitignore
これは私の ~/.gitignore です
.DS_Store
*UserInterfaceState.xcuserstate
*Breakpoints.xcbkptlist
ファイルを無視するには?