Categories
Software development

Git aliases

A coworker recommended this Pluralsight course, and one of the things the instructor introduced to me are git aliases.

I’m using Windows 8 (instead of OSX, like the instructor), found this site helpful, but the git hist alias needed a slight tweak:

git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"

Here’s what the output looks like for ‘git hist’:

* fecb12a 2014-11-11 | Rearrange basic test, add threading tests (HEAD, origin/master, origin/HEAD, master) [kylos101]
* f132e89 2014-10-22 | Update README.md [Kyle Brennan]
* 4fd96ba 2014-10-19 | Now functional! [kylos101]
* f231b54 2014-10-13 | Put the breaker in its own repo, started UT [kylos101]