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>
References:  <20210109102356.7745a48a@Ace.nina.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Jan 9, 2021, at 12:24 PM, Frank Seltzer <frank_s@bellsouth.net> wrote:
>=20
> =EF=BB=BFOn Sat, 2 Jan 2021 23:00:35 -0700
> Warner Losh <imp@bsdimp.com> wrote:
>=20
>> That would. I'll make sure something is written up, but it should exactly=

>> like before.
>=20
> Is there a cookbook guide to converting to git from svn for people who jus=
t
> 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 t=
he
same info=E2=80=A6 I did the old way I knew.

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

=46rom 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 modif=
ications
in some way):

git checkout main

Then update:

git pull

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

--=20
rollingbits =E2=80=94 =F0=9F=93=A7 rollingbits@icloud.com =F0=9F=93=A7 rolli=
ngbits@gmail.com =F0=9F=93=A7 rollingbits@yahoo.com =F0=9F=93=A7 rollingbits=
@terra.com.br =F0=9F=93=A7 rollingbits@globo.com




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