-7

我认为我的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
4

2 回答 2

3

It's working completely correctly. Do git log to see what happened in the past.

于 2014-06-12T18:28:23.817 回答
0

如果您希望为此分支设置跟踪信息,您可以这样做:

git branch --set-upstream-to=origin/<branch> feature-model_in_ruby
于 2014-06-15T20:01:48.867 回答