Add colour to your git output in terminal

August 3rd, 2011 § 0 comments

Have you ever thought that it should be good if the git output in your terminal is colourful? ie.,

  • Added files in one colour
  • untracked files in some other colour
  • Added lines and deleted line is differentiated with colour

Here is the simplest way you can achieve it. Just run the following command after changing the directory into project directory/git repository
  This will show the git output in colour, only for this specific git repository. If you need the same for all git repository then you should run
Now check your git output. It will be colourful and  you will find really easy to differentiate the added and untracked files. Try git diff, you will find even more easier to find the added and deleted line.

Happy Coding.

Revath S Kumar [RSK]

- Rubyist / JavaScripter - Yeoman Team member - Open source enthusiast - Blogger @ PHPRepo and http://blog.revathskumar.com - Coder @ Whatznear - Google fanboy - jQuery lover

More Posts - Website - Twitter - Facebook - LinkedIn - Pinterest - Google Plus - YouTube

Tagged