Git Command Shortcuts (aliases)

about | archive


[ 2008-December-18 20:24 ]

I've been using Mercurial to track my personal development projects. However, Git appears to be more popular, and I've needed to use it. The two are very similar, but my biggest annoyance is that Mercurial automatically completes commands using the characters you have typed, so hg st is a shortcut for hg status. Git does not do this by default, but you can add shortcuts with: git config --global alias.shortcut command. Example: git config --global alias.st status. This makes me very happy. See the git aliases documentation on the git wiki for details.