As I read on shiftkey blog “perhaps the most overlooked command of git is alias”. I have to agree with him on that one, when I started out with git I used GitExtensions mostly due to me not being able to remember the commands. I wasn’t using git fulltime so it was really hard to digg down my brain and find the syntax every time I needed it.
Over the years I have been collecting the aliases that makes sense for me, and by that I really mean makes sense for me :) I might have lost a few recently when I had to reinstall my laptop after a complete crash, but below you will find those I have recovered and remember to have been using quite a bunch.
st - status -s dh - diff HEAD aa - add -A cm - commit -m ups - commit -a --amend
co - checkout cob - checkout -b
This part is mostly different views on logs, honestly I’m not sure it would make sense for anyone but me. Use it for inspiration and go modify it to fit your needs. Tharrr be no silverbullets here neither.
ls - log --pretty=format:"%C(yellow)%h %ad%Cred%d %Creset%s%Cgreen [%cn]" --decorate --date=relative ll - log --pretty=format:"%C(yellow)%h %ad%Cred%d %Creset%s%Cgreen [%cn]" --decorate --date=relative --numstat fl - log -u