Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not as snazzy as in the article but this alias in my .gitconfig is an integral part of my git workflow:

  gr = !git \
    --no-pager \
    log -n 16 --graph --date-order --date=short --branches \
    --pretty=\
  '%C(yellow bold)%h%Creset\
   %Creset %C(blue bold)%d%Creset\
   %C(white bold blink)%s'
The 'gr' is short for 'graph'. You can tweak the -n to show more history. I actually have several of these, 'gr', 'grr', 'grrr', etc. to show more and more history.


I think your alias might have gotten cut off; the last color tag is never reset. Also, I don't understand, why disable the pager and limit the number of entries?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: