File Github,文件太大,已删除。
我有一个文件,我试图添加到我的回购,但超过了github的限制。不幸的是,我删除了它,但当我推它仍然试图添加它File Github,文件太大,已删除。,file,github,File,Github,我有一个文件,我试图添加到我的回购,但超过了github的限制。不幸的是,我删除了它,但当我推它仍然试图添加它 rm dist/img/work.zip fatal: pathspec 'dist/img/work.zip' did not match any files 如何将其从回购中取出?使用 使用命令 git filter-branch --force --index-filter \ 'git rm -r --cached --ignore-unmatch dist/img/wo
rm dist/img/work.zip
fatal: pathspec 'dist/img/work.zip' did not match any files
如何将其从回购中取出?使用
git filter-branch --force --index-filter \
'git rm -r --cached --ignore-unmatch dist/img/work.zip' \
--prune-empty --tag-name-filter cat -- --all
echo dist/img/work.zip >> .gitignore
git add .gitignore && git commit -m "ignore rule for files"
git push -f origin branch