为什么我不能将此更改推送到我的

为什么我不能将此更改推送到我的

本文介绍了为什么我不能将此更改推送到我的“主要"商品库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图嘲弄水星,希望我在这里变得困惑!

I am trying to grok Mercurial and hope I am just getting confused here!

我有一个已经克隆("clone")的存储库("main"),两者都在我自己的机器上.两者彼此完全同步.

I have a repository ('main') that I have cloned ('clone'), , both on my own machine. Both were completely in sync with each other.

我决定与命名分支一起玩,因此下一次我对克隆"进行提交时,我以"case1212"的分支名称进行了处理,尽管它似乎已正确处理了克隆上的提交,但我无法推送这些更改返回到主要".给出的错误是:

I decided to play with named branches so the next time I committed on my 'clone' I did it under a branch name of 'case1212' and while it seems to have dealt with the commit properly on my clone, I cannot push these changes back to 'main'. The error given is:

abort: push creates new remote branch 'case1212'!

...这表明我可能需要先合并?我应该在克隆"存储库上合并什么?当我尝试从主要"退出时,没有任何变化.

...and it suggests that I might need to merge first? What am I supposed to merge on that 'clone' repository? When I try to pull from 'main', there are no changes.

我很确定我真的希望它在我的主"存储库中创建一个远程分支,以便从中进行更新的人可以看到该分支.

I'm pretty sure I actually would want it to create a remote branch in my 'main' repository so people who update from it can see that branch.

推荐答案

Mercurial的默认行为阻止您创建远程分支.如果要执行此操作,则需要强制按下.

Mercurial's default behavior prevents you from creating remote branches. If you want to do this, you need to force-push.

在显示的窗口中的同步"菜单中,有一个用于强制推送的选项.

Synchronize menu in the window you show, there is an option for force push.

这篇关于为什么我不能将此更改推送到我的“主要"商品库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 19:34