1. Want to stash uncommitted changes
7. You type password every time you need to push something on remote ref. It sucks.
git stash2. No, the changes are not tracked (untracked changes)
git add . # all the changes in ./ directory (pwd) git stash # now do this3. Want to undo the last stash
git stash pop4. Again?
git stash pop # its a stack, you got the idea5. Want to clear the stack
git stash clear6. Want to know more about stash? https://git-scm.com/docs/git-stash
7. You type password every time you need to push something on remote ref. It sucks.
git config --global credential.helper cache8. Revert local head upto last nth commit
git reset --hard HEAD~nth9. Take remote head to some commit because all the commits after this particular commit are wrong?
git push origin +: