threeperson博客园 IT技术、互联网技术、Java技术分享

git 永久删除文件

假设要删除的文件是password.txt,运行如下命令: ``` git filter-branch --force --index-filter 'git \ rm --cached --ignore-unmatch password.txt' \ --prune-empty --tag-nam

threeperson threeperson 发布于 2022-05-20