我想忽略我的存储库中的所有文件,除了bin子目录中出现的文件.我尝试将以下内容添加到我的.gitignore:
bin
.gitignore
* !bin/*
然而,这并没有产生预期的效果:我在里面创建了一个新文件bin/,但git status仍在显示nothing to commit (working directory clean).
bin/
git status
nothing to commit (working directory clean)
有什么建议?
git gitignore
git ×1
gitignore ×1