idea 項目 ,錯誤將 工具生成的 .idea 里的文件提交到 倉庫
想要倉庫里刪除該文件,而本地繼續(xù)保留
可以用如下git 命令
git rm --cached filename
看看該參數(shù)的說明
--cached
Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not,
will be left alone.