Git删除远程忽略文件 发表于 2019-08-05 | 分类于 Git 1、在.gitnore 文件中加入需要忽略到文件或目录 2、推送到远程后会发现远程到忽略文件并没有被删除,执行以下命令 1git rm -r --cache . 3、重新添加 12git add .git commit -m 'infos' 4、推送到远程 1git push [越努力,越幸运!]