This question is in reference to Atlassian Documentation: Reduce repository size
I have been asked by Bitbucket to reduce the size of my repo.
I read the article and downloaded BFG. It makes no sense to me? Where do I input these commands?
Tried the Sourcetree console to no avail.
Im very confused. Programmer is busy with other things so I, the artist, am attempting this.
Can someone walk me through this?
They need to be done at the command line on your computer. I am a Mac user so I use Terminal to get to the command line and GIT, which is what I am using, is installed so I can use it.
It took me all day to clear one folder following the web page steps as there are many confusing steps and messages. After repeating a few times, and got the steps sifted down so it goes fairly quick. The longest time will be waiting for cloning and removing if you have a lot of files, but certainly not more than an hour or three.
Bottom line they need to clarify this page is not for Noob even if you have some experience but for those who work at the command line daily.
However I find that there are two traps I ran into so far. One is that BFG requires Java 7 but there is a link at the site for an earlier version, bfg-1.12.3.jar, that uses Java 6 as stated in the Bitbucket documentation. Use java -version at the command line to help with that process. 1.6 is version 6 and 1.7 is version 7.
Second I found Source Tree becomes confusing to use after you run the command line steps. It wants to put back all the files even if you have excluded them in .gitignore. This is because you need to clone the repo again and then add the files you now want to ignore back in.
My steps for over 1GB but under 2GB limit included
You also now need to find a good backup plan for those files outside the repo. For example you could use GoogleDrive, Cubby, Dropbox and other types of versioning services.
The documentation page covers too many variations. They need separate pages for hitting the 2 GB limit and 1 GB limit. Then they need one for each of the repository types, git and mecurial. They need one for each of the tools.
Second it would be worthwhile mentioning on the page that the garbage cleaning may take a while before you see the reset in the repo site in settings.
Third the page does not attempt to be complete instructions. So there is a lot of fill in the blanks.
Fourth, it may be a support reduction task to create a simple page for the user of SourceTree and include the steps for removing some large files or folders from start to end.
Fifth, this is a potentially destructive process with possibility of permanent loss of the file you intend to remove from GIT but keep in your project due to misinterpretation of the many messages and steps that might go along with using SourceTree. Be careful and keep a good backup until you are clear of any doubts.
What happens if your repo is already locked because it exceeds 2GB? All the steps outlined worked except the push command, which spits back the following
remote: repository is in read only mode (over 2 GB size limit). remote: remote: Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw. To firstname.lastname@example.org:ML_Queue_Time_Prediction/qtp.git ! [remote rejected] master -> master (pre-receive hook declined)
Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...
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!
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