を実行するgit commit -a
と、次のように表示されます。
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch better_tag_show
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: ../assets/stylesheets/application.css
# modified: ../views/pages/home.html.erb
# modified: ../views/tags/show.html.erb
# modified: ../../db/seeds.rb
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../assets/stylesheets/
# ../views/pages/
これらの追跡されていないファイルはどういう意味ですか? すべての変更は実際に追跡されています。ここで追跡されていないファイルについてgitが警告している理由がわかりません。
編集:
OK、混乱した返信がたくさんあります。これが私の後に起こることgit commit -a
です。
# On branch master
nothing to commit (working directory clean)
ご覧のとおり、変更が適用された 4 つのファイル以外には何もありません。
私の質問は次のように言い換える必要があります:このコミットのすべての変更が追跡されているのに、追跡されていないファイルについて git が警告するのはなぜですか?
つまり、git commit メッセージの untracked 警告は不要ですか?