portnap is a simple replacement for the discontinued FreeBSD portsnap, acting as convinient git wrapper.
portnap auto
In most cases, it's all what you need.
Usage: portnap [path] <command> [branch]
-p
portsdir -- Location of ports tree (default: /usr/ports/)
auto
-- Fetch updates, and either clone a new ports tree or update an existing tree.
fetch
-- Same as auto but also allows you to select a specific branch.
Where the branch is in <yyyyQx>
or <Qx>
format.
switch
-- Change ports tree branch, where the branch is in <yyyyQx>
or <Qx>
format.
help
-- Print this help information.
portnap fetch Q3
-- Clone or pull ports tree from third quarter of current year.
portnap -p /usr/local/poudriere/acme/usr/ports auto
-- Clone or pull ports tree to alternative directory.
https://github.com/littlelevi/portnap-port/tree/main