あるブランチでいくつかのファイルを変更してから、別のブランチに変更して別の作業を実行したいときはいつでも、変更は私に付属しているようです。例えば、
$ git status
# On branch master
nothing to commit (working directory clean)
~/Sites/sc, kamilski81 (master)
$ touch FakeFile
~/Sites/sc, kamilski81 (master)
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# FakeFile
nothing added to commit but untracked files present (use "git add" to track)
~/Sites/sc, kamilski81 (master)
$ git checkout prod
Switched to branch 'prod'
~/Sites/sc, kamilski81 (prod)
$ git status
# On branch prod
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# FakeFile
nothing added to commit but untracked files present (use "git add" to track)
このシナリオでは、prodにチェックアウトするときに、なぜFakeFileが付属しているのですか?まだチェックインせずに、複数のブランチで複数のファイルを編集するにはどうすればよいですか?それとも私はこれを完全に間違ってやっていますか?