Git Product home page Git Product logo

Comments (6)

echonax07 avatar echonax07 commented on June 5, 2024

I am also facing the same issue with gitlab. I disabled the branch protection as well but still the same error.

any help would be greatly appreciated, thanks

from bfg-repo-cleaner.

Happy-ArthurYang avatar Happy-ArthurYang commented on June 5, 2024

you can try to remove your local repo and clone it again, and the size did change to smaller. so the push should have some effect.

from bfg-repo-cleaner.

joihn avatar joihn commented on June 5, 2024

same issue for me, I'm also a gitlab user.
despite the error, It seem the cleaned item have been pushed to the remote, but I'm still suspsicious about the error message.

from bfg-repo-cleaner.

cocoonkid avatar cocoonkid commented on June 5, 2024

Same issue here as gitlab user. I disabled the branch protection as well but still the same error.


╰─λ bfg --delete-files "MAosA.zip project.git

Using repo : /home/cocoonkid/Documents/tmp/project.git

Found 2050 objects to protect
Found 6 commit-pointing refs : HEAD, refs/heads/dev, refs/heads/development, ...

Protected commits
-----------------

These are your protected commits, and so their contents will NOT be altered:

 * commit f89d2720 (protected by 'HEAD')

Cleaning
--------

Found 208 commits
Cleaning commits:       100% (208/208)
Cleaning commits completed in 92 ms.

BFG aborting: No refs to update - no dirty commits found??

The file is also still visible in the repo in the specific commit. But bfg does not even find it.

I followed the instructions to the dot.

from bfg-repo-cleaner.

doliG avatar doliG commented on June 5, 2024

Same issue here when trying a dry run on a sandbox repo, please maintainer can you help on what should we do when we encounter this error ?

From my understanding this is because GitHub/GitLab still has references to the old commits in any pull requests. Even though BFG has rewritten the commits, GitHub still has read-only refs for the old commits in pull requests.

To resolve this, I found a couple options:

  • Contact GitHub support and ask them to delete the pull requests for our repo. This will permanently remove the refs to the old commits.
  • Live with the error messages. The push was actually successful in rewriting our repository history, but GitHub still has the old refs for pull requests. This will increase the size of our repository on GitHub slightly.
  • Create a new temporary repository, push your cleaned history there, then rename the repositories. Then ask users to clone the new repository.

from bfg-repo-cleaner.

doliG avatar doliG commented on June 5, 2024

Please contributors have a look at the OP of this one. This is an interessing problem worth to explain / mention in the doc and BFG's website (imho).

@rtyley @javabrett @dwijnand

Also this repo needs a bit of triage in the issue, a spammer spawned few days ago..

from bfg-repo-cleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.