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

Repository size keeps on increasing

logicparadise waseem October 29, 2018

Each time we push to BitBucket repository, Size keeps on increasing because unnecessary files are not cleared, Currently, the size of Repository is 3.3 GB. 

We are not able to push any Commit from Local git, each time we tried to commit, we are getting the message that Repository is in read-only mode. 

Help from your end will be highly appreciated.

Thanks.

1 answer

0 votes
Yogesh Mude
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.
October 29, 2018

HI @logicparadise waseem

Welcome to the community!

You can Ignore the Unwanted files if you don't want to push to bitbucket remote repo.

Ignoring content :

1. globaally ignore

- git config --global core.excludesfile
- To create a file for globally
git config --global core.excludesfile '/etc/gitignore'
- Open the file and add the file extension that we want to ignore
sudo vim /etc/gitignore
Ex : *.bak or *.out files need to beignore

2. Locally Ignore (Specific to my Environment)

- Create .gitignore file
Vim .gitignore
Ex : *.dll - To ignore the File
Ex : tmp/* - To ignore directory and the files in it

logicparadise waseem October 29, 2018

Thanks for your concern, 

I am already using  .gitignore to ignore unnecessary files. Right now my primary concern is how can I reduce the repository size which is 3.3 GB, It is because of it I am not able to push any Commit from my local git. as the repository is in read-only mode.

One possible solution i read about is git gc, but how can I run this command on the remote repository.

 

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events