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
Thanks,
https://gist.github.com/grahamperrin/65f53251d819e70839e7aec7378f08a8/revisions#diff-577b2de383314f94da46a5667a0c5b4392c8a8b1f3f02ba34790db869d136957R19 – now an essential point.
I could simplify the preparations i.e.
– although I quite like the longer steps, for beginners to get a rough idea of the types of hidden file that can be present.
Essentially:
Is
--ff-only
sane for all non-commit use cases?