简体   繁体   中英

I can't remove Git Large File from repository history

I've a repository that was migrated from Mercurial to Git in the past, and this repository is on BitBucket. Now I need to move from BitBucket to GitHub, but GitHub saying to me that exists a big file, bigger than 100mb. I can find the branch of file with git log --all -- *MQ.rar , but when I execute the command to remove the file git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch *MQ.rar' -- --all , the file isn't removed.

I used the "Find Large Files" plugin on "Git Extensions", but the file isn't listed.

Maybe could be something with the file path that have acentuation?!

I don't know what can I do to solve this.

This can be an answer to your problem. I've deleted some sensitive data with the help of this repo . It basically deletes the files from your history and you need to make a push in the end. At Readme's most down part, there is a link that will guide you through.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM