cannot git clone into /usr/ports when separate filesystem

Felix Palmen felix at palmen-it.de
Tue Apr 6 12:46:59 UTC 2021


* Marco Beishuizen <mbeis.bsd at xs4all.nl> [20210406 14:35]:
> Pulling isn't possible either:
> 
> ...
> There is no tracking information for the current branch.
> Please specify which branch you want to rebase against.
> See git-pull(1) for details.
> 
>     git pull <remote> <branch>
> 
> If you wish to set tracking information for this branch you can do so with:
> 
>     git branch --set-upstream-to=<remote>/<branch> master

So, set up tracking first as suggested. With a remote named "freebsd",
it would be

  git branch --set-upstream-to=freebsd/main master

Note however I would suggest to

1. name your local branch the same as the remote one and
2. name the "default" remote "origin"

Both don't really matter, just conventions (and it will look the same as
the result from cloning). The following commands would achieve it
(untested):

  git init --initial-branch=main .
  git remote add origin https://git.freebsd.org/ports.git
  git branch --set-upstream-to=origin/main main
  git pull

-- 
 Dipl.-Inform. Felix Palmen  <felix at palmen-it.de>   ,.//..........
 {web}  http://palmen-it.de  {jabber} [see email]   ,//palmen-it.de
 {pgp public key}     http://palmen-it.de/pub.txt   //   """""""""""
 {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20210406/15da6a50/attachment.sig>


More information about the freebsd-ports mailing list