所以我创建了一个名为“Repository”的新目录,没有添加、提交和推送
然后我将此添加到我的 .gitignore
/home/users/user/httpdocs/Repository/*
/home/users/user/httpdocs/Repository
我也这样做了
cd /home/users/user/httpdocs/Repository
git update-index --assume-unchanged $(git ls-files | tr '\n' ' ')
但是每当我执行 git status 时,目录仍然会出现:
Untracked files: # (use "git add <file>..." to include in what will be committed) # # Repository/ nothing added to commit but untracked files present (use "git add" to track)
如何使该目录相应地从 git status 中消失