Alright, lets say one day we make happen to make a bunch of modifications and when we go to commit them we notice we were working on the wrong branch.
How can we for
You can use :
git stash
git checkout
git stash apply
git stash pop
Git stash extremely useful when you want temporarily save undone or messy work, while you want to doing something on another branch.
git -stash documentation