Please check the current beta git conversions

Mathieu Arnold mat at freebsd.org
Wed Sep 2 12:28:32 UTC 2020


On Wed, Sep 02, 2020 at 02:37:45AM +0000, Thomas Mueller wrote:
> from Ed Maste:
> 
> > > Any guidance on amount of diskspace and how long it takes to clone the repo ?
> 
> > I see just over 3GB in my clone, including about 2.5GB in the .git directory.
> 
> > If you have only one checkout git will require a bit more disk space
> > than svn. However, if you have two or more working trees (say, vanilla
> > FreeBSD and multiple work-in-progress trees, or head and stable
> > branches, etc.) using "git worktree" will share the .git directory and
> > in total will occupy less space than the equivalent in svn.
> 
> > I'd expect clones to take minutes, although cgit-beta is running on a
> > lower spec jail host and might have trouble if many people are cloning
> > at the same time.
> 
> 2.5 GB in .git directory sounds crazy and incomprehensible to me.

2.5GB is for the full history, if you only care about the main branch,
you can clone with:

  git clone --branch=main --single-branch https...

It will cut .git down to about 1.2GB.


If you do not care about the history and only want the tip of the
branch, you can also use:

  git clone --branch=main --depth 1 https...

This will cut it down even more to about 270MB.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-git/attachments/20200902/6b43af87/attachment.sig>


More information about the freebsd-git mailing list