私はブランチfeature/branch1にいます。git statusファイルにある 2 つのファイルをリストしてください.gitignore。ブランチにチェックアウトしようとするとdevelop、git によって次のメッセージが表示されます。
error: Your local changes to the following files would be overwritten by checkout:
XXXXXXX.xcworkspace/xcuserdata/XXXX.xcuserdatad/UserInterfaceState.xcuserstate
Please, commit your changes or stash them before you can switch branches.
Aborting
次に、これらのファイルがファイルにリストされているにもかかわらず、これらのファイルを追加しようとしたため、次の.gitignoreメッセージが表示されました。
The following paths are ignored by one of your .gitignore files:
XXXXXXX.xcworkspace
Use -f if you really want to add them.
fatal: no files added
git がこれらのファイルを追加するように求めたのはなぜですか? developブランチで無視されないためです。そして、そのような状況に対処するための最良の選択肢は何ですか? 事前にサンクス。