pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Question about cvs, git, github and shallow clones



On Thu, 9 May 2019 at 03:35, Mayuresh <mayuresh%acm.org@localhost> wrote:

> Well, if you want to use git as a user (i.e. you do not want to
> commit/push), you can clone https://github.com/netbsd/pkgsrc

I did it in the recent past. [And the reason for my question is:]
I did a standard git clone and it took ages, just like a cvs checkout
(about 15 mins, and my Internet connection is quite good).

Then I did a shallow clone:

$ git clone https://github.com/NetBSD/pkgsrc.git -b trunk
--single-branch ~/pkgsrc

and it took less than 2 minutes. Excellent. Then later on I tried to
refresh/update the clone. I confess I don't remember what I typed but
it didn't let me update the clone. I had to remove the directory and
clone again.

All in all, I'd be happy with cvs but, at leat in my case, it takes
ages and 100% cpu.

-- 
Ottavio Caruso


Home | Main Index | Thread Index | Old Index