【发布时间】:2014-09-25 07:48:08
【问题描述】:
我在 git status 上有这条消息:
# On branch YYY
# Your branch is ahead of 'origin/XXX' by 10 commits.
#
nothing to commit (working directory clean)
分支 YYY 是分支 XXX 的子分支。但通常我希望在 git status 上:
# On branch YYY
# Your branch is ahead of 'origin/YYY' by 10 commits.
#
nothing to commit (working directory clean)
Git fetch 不能解决问题。 有什么想法吗?
git branch -avvv 的输出(过滤):
* XXX 0d64037 [origin/YYY: ahead 10] test
remotes/origin/XXX 0d64037 test
【问题讨论】:
标签: git git-branch