rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.95k stars 540 forks source link

Unable to push after reflog expire #335

Open ganjarpanji opened 4 years ago

ganjarpanji commented 4 years ago

Hi, i tried to run git reflog expire --expire=now --all && git gc --prune=now --aggressive then run git push but its displayed error due to big files

any idea to solve this? i'm messed up, when creating pull request it shows so many changes from the start

i have my backup, but when i tried to push its displayed the error due to bigfile as well

remote: Resolving deltas: 100% (18171/18171), done. remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: warning: See http://git.io/iEPt8g for more information. remote: warning: File app/MyappStaging.zip is 94.85 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB remote: error: GH006: Protected branch update failed for refs/heads/master. remote: error: Cannot force-push to a protected branch remote: error: GH006: Protected branch update failed for refs/heads/release/3.13.0. remote: error: Cannot force-push to a protected branch remote: error: GH006: Protected branch update failed for refs/heads/release/3.14.0. remote: error: Cannot force-push to a protected branch remote: error: GH006: Protected branch update failed for refs/heads/release/3.15.0. remote: error: Cannot force-push to a protected branch To github.com:myrepo/mobile-automation.git

tflo commented 4 years ago

remote: error: Cannot force-push to a protected branch

Have you tried to remove the branch protection on your remote repo?

GH001: Large files detected. You may want to try Git Large File Storage

Yes, Large File Storage (LFS) is a good thing. You can even use BFG to retroactively convert refs to LFS.