git reset --hard <commitId>
git push -f origin head
git diff $1 $2
git --no-pager reflog | awk '$3 == "checkout:" && /moving from/ {print $8}' | uniq | head
git branch -D `git branch --merged | grep -v \* | xargs`
git commit -n git cm -n -m "Message"