以删除 .direnv 文件夹为例:
git rm -r --cached .direnv # --cached 不会把本地的 .direnv 删除 git commit -m 'delete .idea dir' git push -u origin master`