Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Request for git gc on repo

swebst
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!
August 28, 2024

 

Hi—I need a git gc on my repo

***st/ins***-***te

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2024

Hi @swebst and welcome to the community!

I ran a git gc on your Bitbucket repo but its size hasn't decreased.

If you would like to remove files from Git history to reduce the repo's size, you can check the following reply of mine on another post for info:

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

0 votes
vikram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2024

Hi @swebst 

Welcome to Atlassian Community.

Please go through below url Atlassian git tutorials.

https://www.atlassian.com/git/tutorials/git-gc

you will able to setup git gc on your repo.

Vikram P

shwebs
Banned
August 28, 2024

Thanks, but I need it run on the bitbucket server and i'm not seeing a way to do that

vikram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2024

Hi Shwebs

Do you want to set up git for bitbucket or do you want to clean up unnecessary files for your repo?

Vikram P

shwebs
Banned
August 28, 2024

need to clean up unnecessary files for my repo on the bitbucket server

vikram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2024

Hi @swebst 

you can run below command locally at any time. Running it won't have any adverse effect on your repository.

git gc 

which cleans up unnecessary files and optimizes the local repository.

Bitbucket runs this operation on its hosted repositories automatically on a regular basis based on a variety of triggers.

or 

Please go through the below documentation 

https://confluence.atlassian.com/bitbucketserverkb/how-to-perform-manual-garbage-collection-on-a-repository-in-bitbucket-server-867194296.html#:~:text=Bitbucket%20server%20relies%20on%20git,are%20in%20objects%2F17). 

 

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