Reputation: 962
I have a new named branch that is NOT ready to be pushed. Meanwhile I developed on main branch. Now I want to push everything I have in main branch and hold the New branch. I know there is a "Secret draft" option without push the branch, but I am not sure if I can still make it 'Public' and push it later on.
Other than "Secret draft", is there a better, safer way to push main branch without pushing the new branch until it is ready?
Thanks
Upvotes: 0
Views: 66
Reputation: 3577
Simply use
hg push -b default
In case you are not convinced, use
hg outgoing -b default
That is the command-line way. If you want to do it in TortoiseHg, select Synchronize on the toolbar, check the Target check box, and select the main branch in the combo box next to it.
EDIT:
However, I suggest you always push all your branches, even intermediate ones:
Upvotes: 1