Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use git on Windows 7. I just updated my git to 1.8.0 from 1.7.3.1, and one of the first things I noticed was that git stash pop now had some new coloring in the output.
Both modified and untracked files are now red, like this:

I would like it to stay white like it used to, both because that is what I am used to, and because I consider the color red to be a sign that something went wrong, which it clearly did not in this case.

So, my question is can this be done, and if so how?

I suspect that there could be some config variable controling this but I can not find it. I don't want to turn all coloring off though, just this.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

That output is actually from git status, which is run by git stash pop.

You can disable color for that command by running

git --global config color.status false

Or you can choose to use different colors for different types of files with:

git --global config color.status.untracked yellow
git --global config color.status.added green

Other color slots are available as well, check the docs for git config and look for color.status.

share|improve this answer
    
Thank you @qqx :) I now have these lines in ~/.gitconfig: [color "status"] \n untracked = cyan \n changed = green \n –  Superole Nov 2 '12 at 12:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.