It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deleted folders - cloning process still appears to think I still have the folders (file size) Edited


I'm pretty new to the git process, and I'm trying to clean up a repo that our company has been using for years.

The issue that I'm trying to resolve is that we have put all of the code into one giant repo.

I'm trying to clean that up and separate them out so that we don't checkout all code base all at once.

The process I'm using to clean up is that I'm cloning the original repo on bitbucket, cloning it on my local environment, deleting all the unrelated folders, commit, and then push it back.

It appears that this process does clean up the uwanted folders.

However, when I do a git clone on the cleaned up repo to another workstation, it looks like the receiving objects line still shows the large amount of files that we had prior to the cleanup. The unwanted folders are definitely gone, but it still seems to download the old repo with all of the unwanted folders first.

Am I missing a step? 

Thanks in advance.

1 answer

0 votes

Hi Alex, it could be that you're not deleting the files properly. My suggestion would be to have a look at Reduce repository size and use the tool BFG Repo Cleaner. 

Let us know if you have any questions!

Cheers :)


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,002 views 1 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you