Git Push is taking so much time after rewriting it's history using BFG Repo Cleaner
Asked by ts-amit_g_kumar:

I am reaching out to you for assistance with an issue I am facing while trying to push my code to a remote repository after using the BFG Repo Cleaner tool.

In the past, I accidentally pushed some confidential keys to my git repository. Although I have since removed these keys from the files, they are still visible in the git history. To mask these keys and protect sensitive information, I decided to use BFG Repo Cleaner to rewrite the repository's history.

BFG Repo Cleaner was able to rewrite the history in just a few seconds, which is great. However, I am now encountering a problem when I try to push the updated code to the remote repository. The process seems to hang indefinitely, and I have been unable to resolve this issue.

I have already attempted several solutions, such as increasing the buffer size and performing garbage collection, but to no avail. It is worth noting that my repository is just 64 MB in size after cloning it using the --mirror flag.

I would greatly appreciate any guidance or assistance you can provide in resolving this issue.


Answers:
author: Gbenga Olusoto
body: Hello [@Atlassian Team](/t5/user/viewprofilepage/user-id/4975895)

Can you please do GC to my repository. I am one of the admin of the repository. Kindly find the details below:

repo:

[https://bitbucket.org/l\*\*\*\*\*\*\*\*\*\*s/gles_\*\*\*\*\*\*\*\*\*](https://bitbucket.org/l**********s/gles_*********) _cluster_1

[https://bitbucket.org/l\*\*\*\*\*s/gmes_a\*\*\*\*\*\*\*\*_s\*\*\*\*\*_cluster](https://bitbucket.org/l*****s/gmes_a********_s*****_cluster)

[https://bitbucket.org/l\*\*\*\*\*\*s/o\*\*\*\*\*b](https://bitbucket.org/l******s/o*****b)

[https://bitbucket.org/lotuscars/gmes_a\*\*\*\*\*_s\*\*\*\*r_cluster_1](https://bitbucket.org/lotuscars/gmes_a*****_s****r_cluster_1)

In case you can't find repo with my account then kindly search in Jonathan Clarke account. She is also one of the admin

if you need more information let me know

comments: author: Patrik S
body: Hello [@Gbenga Olusoto](/t5/user/viewprofilepage/user-id/5497889) ,

The GC was completed successfully on the repositories you shared.

If you need any help in the future, we advise posting a new question instead of responding to someone else's question, as we may miss the notification of this post :)

Thank you, [@Gbenga Olusoto](/t5/user/viewprofilepage/user-id/5497889) !

Patrik S


author: Gbenga Olusoto
body: Thanks


author: Patrik S
body: Hello [@ts-amit_g_kumar](/t5/user/viewprofilepage/user-id/5198288) ,

Welcome to Atlassian Community!

I was not able to find any Bitbucket account associated with the email address that you used to post this question. In this case, could you please log in on Community with the same email that has access to the affected repository, and respond to this question sharing with us the masked workspace and repository name? You can share just the first and last letter of the workspace and repository, e.g **my_workspace/my_repo** would be **m\*\*\*\*\*\*\*\*\*\*e/m\*\*\*\*\*o**

This way I can trigger a Garbage Collection on Bitbucket side so it will remove dangling objects and might improve the performance.

Thank you, [@ts-amit_g_kumar](/t5/user/viewprofilepage/user-id/5198288) !

Patrik S

comments: author: ts-amit_g_kumar
body: Hey [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

Can you please do GC to my repository. I am one of the admin of the repository. Kindly find the details below:

repo: RISG/repos/panel-\*\*\*\*\*\*\*\*\*\*\*\*\*\*-front-end

In case you can't find repo with my account then kindly search in [@jemban](/t5/user/viewprofilepage/user-id/2326870) account. She is also one of the admin. I would appreciate if you could do it before 8 AM(jst). Looking forward for your favour.

Thanks!


author: jemban
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

As Amit mentioned above, you can also use my account. Please let us know if there are any problems. Thank you!

Jem


author: Patrik S
body: Hello [@ts-amit_g_kumar](/t5/user/viewprofilepage/user-id/5198288) and [@jemban](/t5/user/viewprofilepage/user-id/2326870) ,

Thank you for sharing additional details.

Checking our internal tools I've noticed that you actually have a Bitbucket Data Center license, not Cloud. In this case, I've opened an internal ticket for you with our Data Center support team.

You should receive an email with the ticket number, but in case you don't, please let me know so I can share the ticket number with you.

Thank you!  
Patrik S  


author: Gbenga Olusoto
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

Can you please do GC to my repository. I am one of the admin of the repository. Kindly find the details below:

repo:

[https://bitbucket.org/l\*\*\*\*\*\*\*\*\*\*s/gles_\*\*\*\*\*\*\*\*\*](https://bitbucket.org/l**********s/gles_*********) _cluster_1

[https://bitbucket.org/l\*\*\*\*\*s/gmes_a\*\*\*\*\*\*\*\*_s\*\*\*\*\*_cluster](https://bitbucket.org/l*****s/gmes_a********_s*****_cluster)

[https://bitbucket.org/l\*\*\*\*\*\*s/o\*\*\*\*\*b](https://bitbucket.org/l******s/o*****b)

[https://bitbucket.org/lotuscars/gmes_a\*\*\*\*\*_s\*\*\*\*r_cluster_1](https://bitbucket.org/lotuscars/gmes_a*****_s****r_cluster_1)

In case you can't find repo with my account then kindly search in Jonathan Clarke account. She is also one of the admin


Tags: bitbucket-cloud

cloud

git-push

repository