The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-07-2009
blasto333 blasto333 is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 4
Grep ruins color

When I run:

git branch -a

I git a nice green and red colored output, but if I pipe the above command through grep:

git branch -a | grep -v "master"

I lose my colored output. Is there a way around this?