Powerlevel9k: [Question]: What is the difference between the git clean and git untracked?

Created on 23 Aug 2018  路  4Comments  路  Source: Powerlevel9k/powerlevel9k

I just wasn't sure what the difference is between the vcs prompt colors, and i couldn't find it anywhere else. Apologies if I missed it in the docs.

Most helpful comment

yes @CanRau thank you so much!

All 4 comments

I'm still not a git expert myself, yet as far as I understand

a clean git repo means you have no unstaged, uncommited nor untracked files

git untracked in this case would mean you've got a clean repo except for untracked files

as a reference
untracked file: a file never added to the git index, so for example you commited everything, so have a clean repo, than created a new file and before you do the first git add newfile.md it'll be untracked

unstaged file: this one has already been added to your git index using git add and was committed and then you edited it but haven't git added it so far, in this state it's been tracked but not staged
so the stage is the status where it has been prepared to be committed but the commit hasn't happened so far

does that answer your question?

yes @CanRau thank you so much!

you're very welcome, glad I could help 馃憤

Thank U @CanRau

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shibumi picture shibumi  路  5Comments

yoyoys picture yoyoys  路  3Comments

gipert picture gipert  路  5Comments

TheBabu picture TheBabu  路  5Comments

iiison picture iiison  路  3Comments