FreeBSD-CURRENT src: pulling without pushing: example Git commands to clone then update

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Wed, 23 Dec 2020 15:31:26 +0000
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
Received on Wed Dec 23 2020 - 14:31:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC