當我修改一個文件,然後運行git status
我得到:奇怪的行爲與git的狀態
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: app/models/category.rb
#
no changes added to commit (use "git add" and/or "git commit -a")
爲什麼有行(use "git add <file>..." to update what will be committed)
? 我的回購中沒有要添加的文件。
您可能還會喜歡http://stackoverflow.com/questions/1844161/git-status-a-bit-confusing。這個問題,也是關於'git status',與你的問題有點不同,但你可能會覺得它很有趣。 –