Link to home
Start Free TrialLog in
Avatar of sdc248
sdc248Flag for United States of America

asked on

Mercurial to push a branch back to default remote repository

Hi:

I am a newbie with Mercurial. I've read some online articles about how to do things but still cannot quite wrap my head around it. So here's what I have done after weeks of struggling:
1. cloned a copy of source code to my local directory and make changes on it.
2. created a branch named "dev02" on this local directory (dir1), and make more changes and commit.
3. locally cloned dev02 to another directory (dir2), and make some more changes and commit.

Now I want to push my code on dir2 back to remote default repository. Can I simply do "hg push -b ."?

p.s.Good news is I'm the sole developer working on this project so no worry of what anybody else could have done to the code.

Thanks.
Avatar of Phil Davidson
Phil Davidson
Flag of United States of America image

That might work.  You could try this to see what your options are:

thg -v help sync
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.