【发布时间】:2013-08-15 10:00:11
【问题描述】:
我从我们的 repo 中签出了一个新分支。我们的开发分支一切正常。但是在新分支上,“push”什么也没做。
一切看起来都很正常 - 有 2 个提交要推送。
-> git branch -vv
develop 8ab7ef1 [origin/develop] Merge branch 'develop' of git.example.com:core-platform into develop
* hotfix112 8521cef [origin/hotfix/1.1.2: ahead 2] CORE-1263 - Completed merging from dev into hot fix.
但是 Push 什么也没做:
-> git push
Everything up-to-date
-> git status
# On branch hotfix112
# Your branch is ahead of 'origin/hotfix/1.1.2' by 2 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
我发现 'git pull' 使用远程,但 'git push' 没有:
-> git remote show origin
* remote origin
Fetch URL: git@git.example.com:core-platform.git
Push URL: git@git.example.com:core-platform.git
HEAD branch: develop
Remote branches:
core-platform-1.0.0 tracked
develop tracked
hotfix/1.1.2 tracked
master tracked
release/1.0.0 tracked
release/1.1.1 tracked
Local branches configured for 'git pull':
develop merges with remote develop
hotfix112 merges with remote hotfix/1.1.2
Local ref configured for 'git push':
develop pushes to develop (up to date)
->
我不明白为什么 hotfix112 没有链接到遥控器,但 pull 是。
如何修复此配置?
【问题讨论】:
标签: git git-push git-remote