我是 Git 新手。我已经成功推送并合并了两个提交。但是当我检查git状态时,它仍然说
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# 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)
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
no changes added to commit (use "git add" and/or "git commit -a")
git push
(***
是公司Git服务器地址,下面忽略)之后的输出:
$ git push
Total 0 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 1, done
To ssh://***
! [remote rejected] master -> refs/for/master (no new changes)
error: failed to push some refs to 'ssh://***'
有人知道为什么吗?