get current branch name: git rev-parse --abbrev-ref HEAD
revert commit: git reset --soft HEAD~1
revert add: git reset HEAD $1
pushing after rebase: git push --force-with-lease
Resources: https://makandracards.com/makandra/12107-git-show-current-branch-name-only