Updating source tree with git

This post is somewhat similar to previous threads, but I want to make sure I understand this new procedure. I run 12-STABLE and have been updating with svnlite:
svnlite checkout https://svn.freebsd.org/base/stable/12 /usr/src

So I suppose I need to delete or rename the present source tree before proceeding. Is this right?
git clone -b stable/12 --depth 1 https://git.freebsd.org/src.git /usr/src

And this can be kept current with cd /usr/src; git pull. But I also see git config pull.ff only, and wonder whether this is really necessary? Anyhow I hope this is included in the Handbook in the near future.
 
Nuke (delete everything from) /usr/src since it's not a git repo and everything in there will confuse it (and possibly you).

--ff-only is for refusing to update if you modify your copy, it seems?

 
Back
Top