I believe this is what git stash
is for, but want to confirm...
I'm working on a couple of topic branches from master. I occasionally need to jump back and forth between them (master included) and pull the latest from our remote, make some changes, then jump back to the other branch.
If I've worked on file that's shared between branches, I can't simply run git checkout <branch>
to move between them. I'm told I must add & commit my changes first. I'd prefer not to do that sometimes and was wondering about good ways to go about moving from branch to branch as independently as possible, committing only when desired?