Could someone please provide examples of how you configured Gerrit to work with Git LFS? I understand that $GERRIT_SITE/etc/gerrit.config must be modified (I'd appreciate a good example here).
On top of that, I think that each project (Git repo) requires configuration, but I'm not sure if that is done through the command line or via entries in other configuration files.
Thanks in advance.
Once git-lfs is on your path, run git lfs install to initialize Git LFS (you can skip this step if you installed Sourcetree): $ git lfs install Git LFS initialized. You'll only need to run git lfs install once. Once initialized for your system, Git LFS will bootstrap itself automatically when you clone a repository containing Git LFS content.
Gerrit - Configure Git. Once you have installed Git, you need to customize the configuration variables to add your personal information. You can get and set the configuration variables by using Git tool called git config along with the -l option (this option provides the current configuration).
Installing Git LFS 1 There are three easy ways to install Git LFS:#N#a. Install it using your favorite package manager. git-lfs packages are... 2 Once git-lfs is on your path, run git lfs install to initialize Git LFS (you can skip this step if you installed... More ...
Like git lfs clone, git lfs pull downloads your Git LFS files as a batch. If you know a large number of files have changed since the last time you pulled, you may wish to disable the automatic Git LFS download during checkout, and then batch download your Git LFS content with an explicit git lfs pull .
1) Install Plugin
2) Configure GERRIT-SITE/etc/lfs.config
[storage]
backend = fs
directory = xxxxx <= Default: $GERRIT_SITE/data/lfs
3) Configure GERRIT-SITE/etc/gerrit.config
[lfs] plugin = lfs
4) Configure all-projects
git clone https://USER@GERRIT-SERVER/a/All-Projects
git fetch origin refs/meta/config
git checkout FETCH_HEAD
vi lfs.config
[lfs "^.*"]
enabled = true
maxObjectSize = 50m
git commit -a
git push origin HEAD:refs/meta/config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With