简体   繁体   English

不显示Git#您的分支比'origin / master'提前1次提交

[英]Git NOT SHOWING # Your branch is ahead of 'origin/master' by 1 commit

When I modify any file, adding it to the staging area and the commit it to the local repository, I DO NOT SEE the message # Your branch is ahead of 'origin/master' by 1 commit. 当我修改任何文件,将其添加到暂存区并将其提交到本地存储库时,我看不到消息#您的分支比'origin / master'提前1次提交。 when I type the git get status. 当我输入git get status时。 Any idea? 任何想法?

Regards, R. 问候,河。

推送到远程时使用-u标志将针对远程分支显示状态:

git push -u origin master

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM