sdc248
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.
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.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers 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.
thg -v help sync