Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rewritten history still visible

rfeisp
January 14, 2026

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

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 15, 2026

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

rfeisp
January 18, 2026

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

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 20, 2026

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

 

rfeisp
January 21, 2026

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

 

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2026

Hi @rfeisp

I ran Git GC again, could you check it once more?

Regards,
Mark C

rfeisp
February 2, 2026

Hi @Mark C,

Yeah it is still visible... Thank for your help

Regards,
Roberto

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events