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 2019-05-09 at 10:16 BST, Ottavio Caruso wrote:

> 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.

"git help fetch" and have a read of the options which include
"shallow".  It's not recommended though, git isn't cvs and so trying
to make it work the same is going to result in an even more
frustrating experience than trying to use it normally.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index