【发布时间】:2019-12-19 16:01:54
【问题描述】:
这是我之前的帖子here 的后续。 我正在尝试删除我提交给 git 的大文件。根据我之前帖子中给出的建议,我尝试了
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch folder/Unconfirmed 866711.crdownload" --prune-empty --tag-name-filter cat -- --all
按照上述命令,我尝试推送所有更改
git push origin --force --all
但是,我遇到了在使用 filter-branch 之前显示的相同错误
remote: error: File folder/Unconfirmed 866711.crdownload is 486.30 MB; this exceeds GitHub's file size limit of 100.00 MB
或者,我也尝试过
git add --all
git filter-branch -f --index-filter "git rm --cached --ignore-unmatch folder/Unconfirmed 866711.crdownload" HEAD
但是,我得到以下信息
Cannot rewrite branches: Your index contains uncommitted changes.
我不确定我是否错过了任何命令或标志。有什么建议吗?
【问题讨论】:
标签: git github github-for-windows