I create a working repository in HG.
And I have modified some files.
How can i move my all my modification to a branch (a branch that I have not created)?
(kind of ‘git stash’ and the move the stash away change to a branch. Actually, I am not sure how I can do that in git either. If you know, I appreciate if you can tell me in git as well)
Thank you.
First check to make sure that neither the ShelveExtension nor AtticExtension do exactly what you want.
If you’re doing it manually in mercurial I’d avoid a named branch, and just use another head. If for example, you already made the changes you want to “put away” for a little bit.
and now just start working there. You can find that anonymous branch later with
hg headsand merge it in withhg merge.