git 清空本地缓存

清除本地缓存提交

git rm -r --cached .idea/

git add .

git commit -m 'delete .idea'

git push -u origin master -f    //强制提交
原文地址:https://www.cnblogs.com/wpt80/p/12197483.html