More Productive Git

More Productive Git

The git reset command resets the current working state to the last commit or a commit you specify. You can stash your current work with one command:
git stash
Saved working directory and index state WIP on master: 62c8761
Fix buffering issue If you run the git status command now you’ll see that any staged changes have been stashed and the working directory is clean. Change back to the branch you stashed and use the git stash apply command to retrieve them.

Source: increment.com