* Marco Beishuizen <mbeis....@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  <fe...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to