The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How can I apply changes in history

Uran110
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!
April 1, 2025

 

Hi. I can't change history for origin
I've did
1) I found files which were deleted but they presented in history

git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | sed -n 's/^blob //p' | sort -nr -k2 | head -n 30

2) I've used this tool like this example


java -jar bfg.jar --delete-files export.sql

3) Than

git reflog expire --expire=now --all && git gc --prune=now --aggressive

4) check existence 

git log --all -- export.sql

5) check results

 git count-objects -vH

6) and here I tried to apply my changes to origin

git push --force --all

but origin doesn't have my changes. how can I do it in normal way?
And
another question 
when I try to apply it for instance my changes on developer server
what should I do?

on developer

git fetch origin 
git rebase origin/developer

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 2, 2025

Hi @Uran110 

I executed a gc but this didn't reduce the size by much (only 100mb).

I'll need access to your repo in the backend, so I've opened a ticket on your behalf - please check your email and we will continue our conversation there.

Cheers!

- Ben (Bitbucket Cloud Support)

0 votes
Charlie Misonne
Community Champion
April 2, 2025

Sorry!

I meant to reply an another post.

I'll remove my answer 

0 votes
Uran110
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!
April 2, 2025

Problem is that my branch master has weight ( not compressed ) 150mb
but Bitbucket says that my repository has 2GB
I need to reduce this my repository size at leest to 1GB
and All big files were deleted a few years ago but they are in repository history.
I've fixed everything locally, like I write above but I can't do changes for my origin branches.

I can't understand for what I need opensearch.

How can I reduce my repository weight for Bitbucket? 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events