When "gitting" in Windows, I happily use the Github for Windows client, but since I do a lot of work in Linux as well I often end up in the shell when anything more complicated than committing or syncing has to be done. I really like the Posh-Git additions with colors and some info on the state of the tree, but I've been unable to find a good resource on what they all actually mean.
For example, the name of the current branch can be yellow, cyan, red and perhaps other colors as well. If there are local changes, there is a set of extra things (for example +0 ~1 -0
) that are mostly displayed in dark red, but I think I've seen them in other colors as well (I don't know how to reproduce it though - since I don't know what the colors mean...)
Is there a summary somewhere on how to interpret the extra information that the colors and digits give?
Green shows file is in git repository and committed with latest changes. Red shows file is in git repository but latest changes has not been committed. If you will hit git commit command only red marked file will be select to commit.
Colors are explained under The Prompt in the README shown at https://github.com/dahlbyk/posh-git/. To summarize:
The +~-! status represents added/modified/removed/conflicted file count in your index (dark green) and/or working directory (dark red).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With