On Tue, Aug 03, 2021 at 01:01:36AM -0700, sharan....@gmail.com wrote: > When a tracked file is modified, I see file being listed as modified in 2 > colors. > In some case I see red and in some cases, I see green. > Can you let me know what is the different when a file is shown as modified > but with green or red color?
Are you talking about the output a run of `git status` produces in a console/terminal window? If yes, the most trivial explanation I can think of is the difference between the stages of those modifications. When a file is modified in the work tree, `git status` lists its name in red (with the default color settings). When you `git add` these changes into the so-called staging are - so that they will be included into the next commit when you run `git commit`, - the name of that file is listed in green (and in another section of the output). With the default color settings (which I admittedly have never tried to change), I have never seen changes which are in the work tree but not in the staging area listed by a color different from red, and the staged changes - in a color different from greed. If hearing the term "staging area" confuses you, consider starting with [1]. 1. https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/20210815141023.g3olb2ahawdixhlw%40carbon.