A convenient way to streamline your Git workflow is by creating aliases for frequently used commands in your .gitconfig file. While it might not be as stylish as setting up shortcuts in your shell, it offers consistent functionality across all shells and is easy to configure. The Git Cheat Sheet recommends adding the following block to your config file:

[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p

Once you’ve added this block to your config file, the aliases will be immediately available:

$ git st

On branch master

Untracked files:

(use “git add …” to include in what will be committed)

#

_posts/2009-02-06-helpful-command-aliases.textile

nothing added to commit but untracked files present (use “git add” to track)

You can also add aliases directly using the git config command, and they will be automatically appended to your .gitconfig file:

$ git config --global alias.rb rebase

For those transitioning from SVN, Alex Soto suggests a few alias helpers to facilitate interaction with Subversion repositories:

[alias]
spull = !git-svn fetch && git-svn rebase
spush = !git-svn dcommit

Additionally, there are numerous advanced commands available on the GitWiki. If you have any aliases that others might find useful, feel free to comment or submit them for inclusion!