Am I right if I state that git status
shows (if we disregard untracked files)
git diff --cached --name-only
(with green color)
and
git diff --name-only
(with red color)
Is that true?
Essentially, yes, assuming you're talking about the long form git status
output (in the short form the same information is squeezed into just two letters at the front of each file). Note also that the colors are configurable; green and red are simply the defaults.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.