git stash

The git stash command is used to save the current state of the working branch and go back to previous clean working branch and work on something else so that later you can go back and re-apply the changes.

Example

git stash

git stash pop

The git stash pop command is used to re-apply the changes in the current working branch, previouly recorded using the stash command.

Example

git stash pop