If you want to create git aliases optimized for your daily work, you should start by analysing your shell logs to find out which git commands you use most of the time and create shortcuts for them:
cat .bash_history | egrep -i "^git" | sort | uniq -c | sort -n
zsh with extended history (including timestamps) using fc instead of cat.
fc -ln 0 | egrep -i "^git" | sort | uniq -c | sort -n
31 git checkout master 41 git submodule foreach "git push origin master" 59 git submodule foreach "git pull origin master" 265 git submodule foreach "git gui &" 358 git status -s 979 git gui &
Now you can start to write your own aliases for everything and optimize you daily workflow. My aliases can be found here: Git, Aliases, Submodules and Symfony
You liked it ? Link it on your homepage or blog: