Friday, May 8, 2015

Quick and Dirty

Let  me make this a quick and dirty one because I just want to post something slightly useful. So no re-write, no review, the errors stay for the most part.

Here is a git command line shortcut that I use almost daily, and it has been really easy to use from the command prompt, it is an alias for lol


[alias]
        lol = log --graph --decorate --pretty=oneline --abbrev-commit
        lola = log --graph --decorate --pretty=oneline --abbrev-commit --all

Once you have it in your /home/username/.gitconfig you can do the cool thing of laughing out loud at git, and some people do, but I dont enjoy typing lol

The output looks all nice and happy

git lol

vs 
git log 



The choice is yours, but I like pretty colors and shorter blocks. 

No comments:

Post a Comment