我不認爲我的git status
命令在該終端會話運行正常:Git的狀態不正常工作
prompt> git add .
prompt> git status
On branch feature-api_sync
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: api_sync/README.md
modified: storm_tier/README.md
prompt> git commit -m "updated instructions"
[feature-api_sync 4c55c55] updated instructions
2 files changed, 6 insertions(+), 2 deletions(-)
prompt> git status
On branch feature-api_sync
nothing to commit, working directory clean # <== HOW DO I SEE THAT I MADE 1 COMMIT???
但是我怎麼看這個:
prompt> git status
On branch master
Your branch is ahead of 'origin/master' by 14 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
問題在其他軟件不「假設的錯誤」,通常有良好表現。 – user2864740
存儲庫是否有遠程定義?如果有,那麼它會顯示你有一個新的提交 – Pankrates