를 수행 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이 추적되지 않은 파일에 대해 경고하는 이유를 이해할 수 없습니다.
편집 :
네, 많은 혼란스러운 답변이 보입니다. 이것이 내가이 후에 일어나는 일 git commit -a입니다.
# On branch master
nothing to commit (working directory clean)
보시다시피 변경 사항이 적용된 4 개의 파일 외에는 아무것도 없습니다.
내 질문은 다음과 같이 다시 표현되어야합니다. 이 커밋의 모든 변경 사항이 추적되었을 때 git이 추적되지 않은 파일에 대해 경고하는 이유는 무엇입니까?
즉, git commit 메시지의 추적되지 않은 경고가 필요하지 않습니까?
(use "git add <file>..." to include in what will be committed)