portsnap and git getting ports

Hello.
Is it necessary to install git to install ports now?
Is it enough to fetch and update ports - portsnap fetch extract update (portsnap fetch update)?
git, can I not install it?
 
Is it necessary to install git to install ports now?
No.
Is it enough to fetch and update ports - portsnap fetch extract update (portsnap fetch update)?
Yes. Actually, there were plans to deprecate portsnap. It's extra infrastructure to maintain for no gain, and it only supports the "main" branch ("latest" ports). But at least for any FreeBSD 13 version, it will stay supported.
 
I installed

pkg install git-lite

And then

git ls-remote https://git.freebsd.org/ports.git | grep refs/heads

To find the quarterly branch I want. Then deleted the entirety of /usr/ports and ran

git clone -o ports -b 2021Q4 https://git.freebsd.org/ports.git /usr/ports

I expect I can now

cd /usr/ports;git pull --rebase

When I want to update it, per instructions in https://docs.freebsd.org/en/books/handbook/mirrors/#git

and when a new quarterly comes out I assume can do

cd /usr/ports;git checkout -b 2022Q1

To align ports with pkg using quarterly
 
Back
Top