Trying to install /usr/src

Hello I'm running FreeBSD 12.2-RELEASE-p3 GENERIC amd64 and I want to attempt to build a new kernel, but I'm missing my sources. I'm bit confused on how to use subversion to download the correct /usr/src. Will this install the correct sources on my system?

svn checkout https://svn.freebsd.org/base/releng/12.2 /usr/src
 
The sources for 11 and 12 should still be available on subversion. But moving forward it'll be better switching to git now.

If you don't want the git dependencies, or if you're not that familiar with git, give net/gitup a go.
 
Back
Top