git branch -m <new_name>
git reset --soft HEAD~1
git push -d origin
git reset --hard HEAD
git clean -f -x -d -n
git status
Your branch is ahead of 'xxxx' by N commits.
git reset --hard HEAD~N
git pull
git status
git commit --amend -m "New commit message."