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

Filed under:
|
|
|

Using cvs, git or another technique (file system level?), I would like to:

  1. Make modifications on branch A

  2. 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

  3. Make modifications on branch B

  4. 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

Related posts about git

Related posts about cvs