Re: Please check the current beta git conversions

From: Mathieu Arnold <mat_at_freebsd.org>
Date: Wed, 2 Sep 2020 14:27:59 +0200
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

Received on Wed Sep 02 2020 - 10:28:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC