git is tracking a bunch of files:
git ls-tree --full-tree -r HEAD
100644 blob a-sha1 .gitignore
100644 blob b-sha1 my/file
however when I do a git status
I get:
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../../../.project
Why is ../../../.project
being listed as an untracked file?
This would be due to it being present inside the directory where your git repository is initialized.
To stop it being tracked you could add that directory to your .gitignore
If you haven't run git init
in this repo, that can happen.
I added a ../
in .gitignore and then run git init
.
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.