Forums

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

Regarding maintaining the PR's commit hashes after rewriting using BFG Repo cleaner

Saravanan Doraiswamy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 7, 2025

Hi Team,

Kindly note that, we have a Bitbucket repository with a long time history (~11 years) and long back there was a large file that was commited, pushed and later discovered and deleted. 

When we tried to migrate to GitHub, we found this because the history still had the large file and cleaned up using the BFG repo Cleaner. However, based on the documentations and discussions, we find that the rewrite will generate new commit ids and will make all the related old PR's references invalid because the commits are newly generated.

We also find that there is a file called as `object-id-map.old-new.txt` which was generated by the repo cleaner, will it possible for us to restore the commit and PR mapping so that we can preserve the PR and migrate to GitHub.

 

Your suggestions or help will be very useful for us. Kindly advise.

Regards,

Saravanan D

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events