Git Aliases are shortcuts for when using git. For example instead of typing:
git commit -m "this is my commit message"
You could instead type:
git ci "this is my commit message"
This is done by setting up an alias:
git config --global alias.ci 'commit -m'
I have intentionally decided to keep these to a minimum as I am not an advanced git user and stick to a few basic commands I am, currently, the only person working on the repositories that I work on.
Check the current status with verbose message
git config --global alias.st 'status'
git config --global alias.aa 'add -A'
Commit with the message flag
git config --global alias.ci 'commit -m'
Switch to another branch
git config --global alias.br 'branch'
Switch to a branch or tag
git config --global alias.co 'checkout'
Create a new branch and switch to it
git config --global alias.cob 'checkout -b'
Delete a branch on local machine
git config --global alias.dbl 'branch -d'
Delete a branch on local machine
git config --global alias.dbr 'push origin --delete'
git st
git aa
git ci "the commit message"
git br
git co branch-name
git cob new-branch-name
git dbl branch-name
git dbr branch-name