What are tracked files and untracked files in the context of Git?

前端 未结 5 1943
逝去的感伤
逝去的感伤 2021-02-02 08:14

I\'m new to Git. I wish to know what are tracked and untracked files? I read \"Pro Git\", but still couldn\'t quite understand.

Can someone explain to

5条回答
  •  伪装坚强ぢ
    2021-02-02 09:02

    Remember that each file in your working directory can be in one of two states: tracked or untracked. In short, tracked files are files that Git knows about. Untracked files are everything else — any files in your working directory that were not in your last snapshot and are not in your staging area. Tracked files are files that were in the last snapshot; they can be unmodified, modified, or staged

提交回复
热议问题