Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2021 22:42:31 -0300
From:      =?utf-8?Q?Lucas_Nali_de_Magalh=C3=A3es?= <rollingbits@gmail.com>
To:        Frank Seltzer <frank_s@bellsouth.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: src: continued use of Subversion for getting updates
Message-ID:  <F731EF95-6625-4A6F-9DAD-F00A2A8AA906@gmail.com>
In-Reply-To: <20210109102356.7745a48a@Ace.nina.org>

index | next in thread | previous in thread | raw e-mail

> On Jan 9, 2021, at 12:24 PM, Frank Seltzer <frank_s@bellsouth.net> wrote:
> 
> On Sat, 2 Jan 2021 23:00:35 -0700
> Warner Losh <imp@bsdimp.com> wrote:
> 
>> That would. I'll make sure something is written up, but it should exactly
>> like before.
> 
> Is there a cookbook guide to converting to git from svn for people who just
> want to checkout source to buildworld and keep the ports tree up to date?

Hi.

There is a few good references in this thread already but I was looking for the
same info… I did the old way I knew.

The git man page gives a starting point in full details and includes the references
to gittutorial, gittutorial-2 and gitworkflows man pages.

From an inexistent /usr/src, first get the sources:

cd /usr
git clone <repo> src

Then switch to the desired branch:

git checkout <branch>

<modify, compile as desired>

To update, first switch to head again (you will have to deal with your modifications
in some way):

git checkout main

Then update:

git pull

I omitted all the details and many useful options. Ideally, a distributed VCS like git
lets you work and save your modifications in your own branch.

-- 
rollingbits — 📧 rollingbits@icloud.com 📧 rollingbits@gmail.com 📧 rollingbits@yahoo.com 📧 rollingbits@terra.com.br 📧 rollingbits@globo.com



help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F731EF95-6625-4A6F-9DAD-F00A2A8AA906>