Show branches still to be merged to master
git fetch
git branch --no-merged master
Create new branch and switch to it
git checkout -b my-new-branch
Show files changes from a stash
git stash show -p stash@{0}
Reset latest local commit
git reset HEAD~1
Reset all local commits back to a public branch
git reset --hard origin/master
or
git reset --hard origin/production
Create a new tag
git tag 'v1.2.2'
git push origin 'v1.2.2'