git Aliases
While the SCM integration of an IDE is convenient for most people, I prefer using the command line. So
for git. However typing full git commands like git commit
becomes cumbersome at a certain point (even though
it’s only a few letters to type). Luckily, git comes with built-in support for command aliases you can use to
abbreviate commands. So I only need to type git ci
. Here are the git aliases I have configured:
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.di diff
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
You may also be interested in some documentation on that topic: