我提交并从命令行推送到远程存储库后:
git commit -m 'ID: XXXXXX Some comments'
git push origin feature/xxxxx
Everything up-to-date
但是当我去github时,我看不到我对新闻Feed的推动,就像luca pushed to feature/xxxx at xxxxxxxxx
我显然在相关分支上,我使用git branch
命令进行了检查。
我错过了什么吗?
答案 0 :(得分:2)
git消息Everything up-to-date
表示您要推送的远程分支已与正在推送的本地分支同步。因此,GitHub上没有新闻源,因为远程分支上没有任何内容发生变化。
如果您的本地分支与远程分支不同步,则执行:
$ git status
将显示如下消息:
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
现在,当您将本地分支推送到远程分支时,git会显示一条消息,例如:
$ git push origin master
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 290 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To git@github.com:user/project.git
d478973..abc3741 master -> master