Skip to content

Useful git aliases

Why

I often mistype things when doing git operations. Think git pus instead of git push etc

Aliases

Rename branch

git config --global alias.rename 'branch -m'

Used by

git rename feat/1234

Typo Fixers

git config --global alias.ad 'add'
git config --global alias.pus 'push'

Want to make this site better? Open a PR or help fund hosting costs