Not for committers.
Please treat this page as work in progress during the transition to Git.
rm /var/db/gitup/ports
rm -r /usr/ports/*
rm -r /usr/ports/.git*
rm /usr/ports/.arcconfig
rm /usr/ports/.portsnap.INDEX
ls -adhl /usr/ports/.*
- remove anything else that no longer has a place.
Essentially:
- if the
/usr/ports/
directory exists, it must be empty.
There's the option of zstd-19 for aggressive compression of future writes to your filesystem. Do this only if your computer is suitably specified. Example:
zfs set compression=zstd-19 copperbowl/usr/ports
git -C /usr clone -o freebsd -b main https://git.freebsd.org/ports.git ports
git -C /usr/ports pull --ff-only
– or if you also work with FreeBSD documentation and source files:
git -C /usr/doc pull --ff-only && git -C /usr/ports pull --ff-only && git -C /usr/src pull --ff-only
I think that /usr/ports must be empty, otherwise you will get
fatal: destination path 'ports' already exists and is not an empty directory.
Rather than always specifying
--ff-only
, if you run git pull without this you will get a load or orange text that explains the command to set the default pull option. If you only build in the ports directory then fast forward is a good choice. If you modify things then merge is probably a better choice.