Reputation: 3422
I have this when I run git status
on one of my folder :
I dont understand what this means concerning the tracking of my files.
I try to run git add .
then git commit
but I get
"On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean"
Why do I have this red notation here that seems to notify me that some files where not commited ?
Upvotes: 0
Views: 56
Reputation: 489293
OK, now that we know what your git st
alias does (git status -sb
= show short status including branch and upstream branch), we can answer where the red origin/master
comes from: that's the upstream branch, shown in red because red is the default color for showing upstream branches in git status -sb
output.
(For some reason, upstream branches default to blue in git branch -vv
output, but red in git branch -sb
. The current branch defaults to green in both. All of these assume you have colors turned on.)
If you mean that the one in your prompt is red, there's no easy way to tell from here, since prompt-setting is something you do with shell setup, and the colors are usually selected by whatever code you used to do that.
Upvotes: 1