Updating ports after a new install of 14.2-RELEASE (incl. ports)

Hi,
I've got a new installation of 14.2-RELEASE and elected to install ports as part of the install.
I then installed devel/git. Now I want to update the ports tree (with git). I read the Handbook, possibly incompletely, and could not discover how to do this.
When I run git I get the following:
Code:
root@x:/usr/ports # git clone --depth 1 https://git.FreeBSD.org/ports.git /usr/ports
fatal: destination path '/usr/ports' already exists and is not an empty directory.
I get what's going on. Is there way to solve this WITHOUT deleting the contents of /usr/ports and doing a pull/clone? Hopefully I misread the Handbook and someone will kindly explain where.
Thanks,
Scott
 
Nope. It has to be completely empty. So rm -rf /usr/ports/* /usr/ports/.[^.]*
To add a bit more context here, git is not like subversion which would use already existing files and just download the updates so you are not missing anything by deleting /usr/ports contents. Git downloads the history/contents as binary blobs and then "extracts" the files at the revision you request (HEAD if not specified).
 
It'd be nice if this were in the Handbook. Installing ports during the OS install from disc1.iso seems to be useful only for compiling git. Then you delete it and git clone the repo.
Can anyone edit the Handbook. If so I'd like to add a note to the install and/or ports section for others.
 
Back
Top