Skip to content

Instantly share code, notes, and snippets.

@showmeyourhits
Last active October 20, 2022 11:48
Show Gist options
  • Save showmeyourhits/ed8c83a8c58d05572097487ce8d28912 to your computer and use it in GitHub Desktop.
Save showmeyourhits/ed8c83a8c58d05572097487ce8d28912 to your computer and use it in GitHub Desktop.
Mine Git aliases that I'm very used to.
# Commit + amend = CommEnd
git config --global alias.commend 'commit --amend --no-edit'
# Useful for temporary work saving - git stash is not safe
git config --global alias.tempo 'commit -m tempo --all --no-verify'
# Commend + Please = Code Review
git config --global alias.please 'push --force-with-lease'
# Undo last commit changes - used with git tempo
git config --global alias.uncommit 'reset HEAD~1'
# Short status
git config --global alias.st 'status --branch --short'
# Short commit command
git config --global alias.cm 'commit'
# Short checkout
git config --global alias.co 'checkout'
# Push and create branch on upstream - useful for new branches
git config --global alias.pushon 'push -u origin HEAD'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment