Master Git
Undo git add
git resetUndo git commit but keep current files
git reset --mixed HEAD~1Undo git commit and restore old files
git reset --hard HEAD~1Return to the last commit
git reset --hard HEAD~0Create a branch
git branch devGo to that branch
git checkout devPush that branch to remote
git push -u origin devMerge that branch to current branch
git merge devDelete that branch
git branch -d dev
git push origin --delete dev