Installing and updating the src tree with svn went like this [for release 12.2] into the src directory:
For Freebsd-Current [currently version 13] it is:
Updating the src tree went like this:
===========
With GIT
To obtain the code for FreeBSD Current [in /usr/src/ssh:/anongit@git.freebsd.org/src.git/] {i suppose this directory name could be anything, so long as it ends with '.git'? edit: it can be anything}:
To update the src tree, cd to the "/usr/src/ssh:/anongit@git.freebsd.org/src.git/" directory and run
It should give a warning and some options, choose one of the options and the warnings will go away.
The question I have is how do I clone a FreeBSD-Release, say for FreeBSD 12.2? I tried:
But this isn't correct.
Edit {thanks goes to the nice people who posted below}:
================
------------------
To obtain the code for FreeBSD Current [in /usr/src]:
To obtain the code for FreeBSD Release 12.2 [in /usr/src]:
To obtain the code for FreeBSD 12 Stable {current of release 12} [in /usr/src]:
-----
To Update the code:
You need to configure git before using "pull."
For the lastest updates to the src tree:
change directory to /usr/src and type:
[I tried to compile a kernel using the default merge configuration and "uname -a" told me my kernel was dirty after the install. I did another compile using the ff config and everything went like normal.]
svn checkout https://svn.freebsd.org/base/releng/12.2 /usr/src
For Freebsd-Current [currently version 13] it is:
svn checkout https://svn.freebsd.org/base/head /usr/src
Updating the src tree went like this:
svn update /usr/src
===========
With GIT
To obtain the code for FreeBSD Current [in /usr/src/ssh:/anongit@git.freebsd.org/src.git/] {
Code:
cd to /usr/src/
git clone https://git.freebsd.org/src.git ssh://anongit@git.freebsd.org/src.git
To update the src tree, cd to the "/usr/src/ssh:/anongit@git.freebsd.org/src.git/" directory and run
git pull
It should give a warning and some options, choose one of the options and the warnings will go away.
The question I have is how do I clone a FreeBSD-Release, say for FreeBSD 12.2? I tried:
git clone https://git.freebsd.org/src/releng/12.2.git ssh://anongit@git.freebsd.org/src/releng/12.2.git
But this isn't correct.
Edit {thanks goes to the nice people who posted below}:
================
------------------
To obtain the code for FreeBSD Current [in /usr/src]:
Code:
git clone https://git.freebsd.org/src.git /usr/src
To obtain the code for FreeBSD Release 12.2 [in /usr/src]:
Code:
git clone -b releng/12.2 --depth 1 https://git.freebsd.org/src.git /usr/src
To obtain the code for FreeBSD 12 Stable {current of release 12} [in /usr/src]:
Code:
git clone -b stable/12 --depth 1 https://git.freebsd.org/src.git /usr/src
-----
To Update the code:
You need to configure git before using "pull."
For the lastest updates to the src tree:
Code:
git config pull.ff only
change directory to /usr/src and type:
Code:
git pull
[I tried to compile a kernel using the default merge configuration and "uname -a" told me my kernel was dirty after the install. I did another compile using the ff config and everything went like normal.]
Last edited: