Save/restore git/cvs checkout changes when switching branches?
Posted
by Dale Forester
on Stack Overflow
See other posts from Stack Overflow
or by Dale Forester
Published on 2010-05-17T14:55:22Z
Indexed on
2010/05/17
15:10 UTC
Read the original article
Hit count: 318
Using cvs, git or another technique (file system level?), I would like to:
Make modifications on branch A
Checkout branch B: Changes to branch A are "stowed away" (by name would be nice), branch B is checked out such that my branch A changes are gone
Make modifications on branch B
Checkout branch A: Changes to branch B are "stowed away" (by name would be nice), branch A is checked out such that my branch B changes are gone but now my "saved" branch A changes from Step #2 are back
Git-stash does not appear to fit the flow I'm describing although my impression could be wrong.
Techniques involving RCS's or file system or command-line tools or otherwise are welcome.
© Stack Overflow or respective owner