Lets say that I work on branchA
, and need to temporary commit all the uncommitted changes. So I create branchB
, and commit everything.
After some time, I need to move all those changes back to branchA
as uncommitted changes.
(Some changes where to files that where not previously tracked in repo)
How can I do it? Merge + reset? Is there simple command for it?
I could also rephrase this question as:
How to undo git branch -b branchB; git add .; git commit; ?