ブランチで作業し、メイン トランクに切り替えようとすると、次のエラー メッセージが表示されます。
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree checkout master
error: The following untracked working tree files would be overwritten by checkout:
LogLevels.cpp
Please move or remove them before you can switch branches.
Aborting
Completed with errors, see above
ファイル LogLevels.cpp を作成し、git に知らせずに名前を logLevels.cpp (小文字のイニシャル) に変更しました。これで、すべての変更をブランチにコミットしました。すべて問題ないように見えますが、メイン トランクに戻ることができません。
この問題を解決するにはどうすればよいですか? ディレクトリとgitの両方からファイルを削除し、バックアップからコピーしようとしましたが、結果はありませんでした。