我在 gitignore 和 ./git/info/exclude 之间有冲突
文件夹内容
.git
.gitignore
test_file.txt
./git/信息/排除
test_file.txt
.gitignore
*
!*.txt
混帐状态
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
test_file.txt
nothing added to commit but untracked files present (use "git add" to track)
我知道问题出在.gitignore,.git/info/exlude先于.gitignore执行。但是如果我在
test_file.txt
之后加上!*.txt
,它就会起作用。如何在不更改 .giignore 文件的情况下解决该问题?如何告诉 git 在 .gitignore 之后应用 .git/info/exclude?