- Fix/rename last commit:
git commit —ammend - Rename current branch:
git branch -m <newName> - Watch for branches to remove:
git branch | grep <partOfBranchesName> - CAUTION Remove all branches that have the passed argument:
git branch | grep <partOfBranchesName> | xargs git branch -d - Revert commits (faulty ones). Use with caution, if you're not sure, go for
git reset
git log
git revert