我不认为我的git status
命令在此终端会话中正常运行:
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
答案 0 :(得分:3)
它完全正常工作。请git log
查看过去发生的事情。
答案 1 :(得分:0)
如果您希望为此分支设置跟踪信息,可以使用以下命令设置:
git branch --set-upstream-to=origin/<branch> feature-model_in_ruby