Git Extensions - 推送到非主远程分支

时间:2017-01-25 06:26:38

标签: git git-extensions

使用v2.49 Git版本2.10.1

在以下情况下,我在推送对话框中遇到问题:

  • 远程存储库有2个分支,'master'和'otherBranch'
  • 克隆本地存储库并检出'otherBranch'分支。
  • 创建一个名为'myBranch'的新分支并将其检出。
  • 更改文件,暂存和提交我的更改。
  • 尝试将'myBranch'推送到远程'otherBranch',但推送对话框只显示'master'和'myBranch'作为“branch to push to”的选项(缺少'otherBranch'选项)。

Git Extension视图知道otherBranch(我可以看到从master到origin / otherBranch分支的分割)。 尝试git fetch and pull但是一切都是最新的。

现在,当使用Linux GIT命令行时,“git push”在这个特定场景(“git push origin myBranch:otherBranch”)上正常工作,所以它就像git扩展无法正确获取远程分支列表。 我错过了什么?

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

这是GitExtensions中的一个错误。 https://github.com/gitextensions/gitextensions/commit/8d9560230041f27ecf72255a542e095532be722a 该补丁将包含在2.50版本中。

相关问题