.gitignore 无效问题备忘

it2026-09-30  8

若文件已纳入版本管理,则.gitignore无效。

可用 git rm 取消文件的版本管理。

更常用的是 git rm --cached  保留当前目录下的文件。

最新回复(0)