Manoj Rao bio photo

Manoj Rao

Your Average Common Man

Email Twitter Github

In earlier posts, I have written about a couple of git tricks that I have found very useful. Today, I’m dumping on you the entire list of git aliases. Out of all the aliases shown below ri and gg are the most frequently used. Although standup is useful I have not used it enough yet.

		co = checkout
		ci = commit
		ca = commit --amend
		lol = log --oneline --decorate --graph
		ri = rebase -i
		rc = rebase --continue
		st = status
		ap = add -p
		standup = log --since yesterday --author `git config` --pretty=short
		lg = log --pretty=format:"%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset"
		unpushed = log --stat @{u}..HEAD
		gg = grep --break --heading -n
		cl = log --graph --pretty=format:"%an: %s%C(yellow)%d%Creset %Cgreen(%cr)%Creset" --date=relative
		cls = log --pretty=format:"%an (%ae): %C(yellow)%s%Creset" --shortstat
		diff = diff --word-diff
		wdiff = diff -w --word-diff-regex=. --color-words -U0
		dag = log --graph --format='format:%C(yellow)%h%C(reset) %C(blue)\"%an\" <%ae>%C(reset) %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)%n%s' --date-order

Bring Your Own Cause

If you think any info here has remotely helped you consider dropping a penny for this cause, just click me . You can visit Unfortunately, there are plenty of sad things happening all over the world, if you have a different cause or charity you'd rather support please do. And if you did make a donation, please drop a note to me (annotated) or leave a comment here (anonymous is OK!) and I will use that as motivation to write more useful content here.

If you like topics such as this then please consider subscribing to my podcast. I talk to some of the stalwarts in tech and ask them what their favorite productivity hacks are:

Available on iTunes Podcast

Visit Void Star Podcast’s page on iTunes Podcast Portal. Please Click ‘Subscribe’, leave a comment.

Get it iTunes