Why does “git status” show way too much untracked files?

后端 未结 3 2096
轻奢々
轻奢々 2021-02-14 00:48

Answer in the bottom.

I am trying to see the status of my files in the git_test2 directory which contains 3 files named

3条回答
  •  太阳男子
    2021-02-14 01:10

    As you see, file paths starts with ../... Git status always shows all changes in current repositroty, not only in current directory. As you see, it actually shows changes in repository, in which you are at least 2 folders deep. But there are no files test1.txt.

    So, check with pwd that you're in right directory (maybe you're in another repo currently).

提交回复
热议问题