Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2020 15:31:26 +0000
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   FreeBSD-CURRENT src: pulling without pushing: example Git commands to clone then update
Message-ID:  <53c66d2a-293c-9c42-acd9-ad1c280be7c7@gmail.com>
In-Reply-To: <50240461-2c49-42b2-5df6-98041efc8419@gmail.com>
References:  <CANCZdfrUsaw5jpN1ybpk0ADXdQYam0_NO0mPJd0-FMbuxPruhw@mail.gmail.com> <20201222183900.GA22353@www.zefox.net> <81C07616-434E-4DF4-91AC-518AECF4F16F@gromit.dlib.vt.edu> <01b07b90-e206-aa56-aa5b-91c764ef36a4@gmail.com> <CANCZdfpJC4jA0ZUfP90FkeY-EWpLJo%2BZcRctV6GUKt=tyUG2kA@mail.gmail.com> <4a78a724-08d8-b9bd-1353-598b5c596078@gmail.com> <CANCZdfqJPo7bOmzcXz2a-fJzk8H6Qmym7eLy7DQzABjsS64tjQ@mail.gmail.com> <50240461-2c49-42b2-5df6-98041efc8419@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23/12/2020 10:13, Johan Hendriks wrote:

> … For me and i think a lot of regular users that do not push just 
> pull, a simple page with the exact commands to track stable or head is 
> very appreciated.
>
> Like svnlite update /usr/src replace with git pull .... and so on and 
> an example for head, stable or release will push most people in the 
> right direction. … 


-CURRENT
========

Guided mostly by the documentation:

1. with /usr/src as an empty working directory
2. the command below, just once

git clone -o freebsd -b main --depth 1 https://git.freebsd.org/src.git 
freebsd-current

(I do not foresee me committing, and I had no immediate interest in 
history.)

Subsequent updates
------------------

portsnap auto && git -C /usr/src/freebsd-current pull --ff-only && echo 
"FreeBSD-CURRENT Git revision: " && git -C /usr/src/freebsd-current 
rev-list --count HEAD

– take what you like from that. Not intended to be an exact command for 
other users, but it suits me.

Context: <https://old.reddit.com/comments/keme3b/-/ggs61in/?context=1>;

HTH
Graham




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53c66d2a-293c-9c42-acd9-ad1c280be7c7>