By using git filter-repo I have rewritten some history removing some data.
The repository size has been reduce but the old commits are still visible using direct links: they are no more accessible by using the text search in the "Commits" area.
On top of the screen is visible the following message: "This commit is not reachable from any branch or tag in this repository. It may be from a fork outside of this repository."
I surmise it is something similar to the following post: https://community.atlassian.com/forums/Bitbucket-questions/This-commit-is-not-reachable-from-any-branch-or-tag-in-this/qaq-p/2703261
Commit URL example: https://bitbucket.org/rfeisp/api-website/commits/8cff9efe7159751ec1adeef894432ae74043241a
Hi @rfeisp
Welcome to the community.
I went ahead and run Git GC (garbage collection) against your remote repository.
Could you check if the commit is still visible?
Regards,
Mark C
Hi Mark,
thak you so much for your time.
No, unfortunately it is still visible, like its parent commit (which has no diff with the rewritten commit).
Thanks,
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @rfeisp
Could you try to clone the repository locally via --mirror clone and see if you can still see the commit locally?
If yes, you may need to use the BFG tool to remove the commit/file.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
if I download the repository locally the commit is not existing either if I use or not the --mirror option.
I have checked by using the following command:
git cat-file -t 8cff9efe7159751ec1adeef894432ae74043241a
Output:
fatal: git cat-file: could not get object info
The strange thing is that on Bitbucket the rewritten version of this commit is accessible through UI, but the "obsolete" version is still accessible by direct link.
I can't access to the "obsolete" commit version by searching it on the commit list.
I have also completed the "Garbage collecting dead data" procedure highlighted here but nothing has changed.
Thanks for your help,
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.