现在项目的根目录放了 .gitignore 文件,并且git远程仓库的项目根目录已经有了 logs文件夹。
目录像这样logs/*.log
正确的做法应该是:
git rm --cached logs/xx.log
,然后更新 .gitignore 忽略掉目标文件,最后
git commit -m “We really don’t want Git to track this anymore!”
现在项目的根目录放了 .gitignore 文件,并且git远程仓库的项目根目录已经有了 logs文件夹。
目录像这样logs/*.log
正确的做法应该是:
git rm --cached logs/xx.log
,然后更新 .gitignore 忽略掉目标文件,最后
git commit -m “We really don’t want Git to track this anymore!”