admin管理员组文章数量:1357387
I'm trying to migrate a large repository with a couple of thousand branches from Bitbucket to Github. During this process I want to preserve all branches and tags.
My problem is that I have a couple of large files inside the history of the repository and when I try to push all branches, it fails with the github error that it restricts files larger than 100mb.
I've tried the suggested solutions in the first page of google.
git filter-repo
does not work, because it thinks I have refs called "FE" and "fe" which I don't, but I can't pass through that.
The most successful one has been to use git filter-branch
and remove the large files from the main
branch.
The main problem is that with git filter-branch
is that is does not clear the history of all branches, just a single one. I have to cycle through all branches and execute the command for each branch. And this takes AGES.
When I execute that command, I can clean just a single branch. How do I remove the file from all branches?
git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch path/to/my/file' HEAD
Can you help me? How do I remove the reference for this large files from all branches and tags at the same time?
本文标签: GitHub large file limitation and clearing git historyStack Overflow
版权声明:本文标题:GitHub large file limitation and clearing git history - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744079586a2587381.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论