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.
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 beignore2. 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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.