Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2021 14:46:52 +0200
From:      Felix Palmen <felix@palmen-it.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: cannot git clone into /usr/ports when separate filesystem
Message-ID:  <20210406124652.menaukocmrjtlrmw@nexus.home.palmen-it.de>
In-Reply-To: <7b3c23b6-4344-5a5f-e521-2e1f51c3185c@xs4all.nl>
References:  <202104061200.136C0Qii094016@nuc.oldach.net> <c0e43b7-20a4-1ba1-c7cf-3a2f95f9bd3@xs4all.nl> <20210406123033.s4ny7wziy564jhf2@nexus.home.palmen-it.de> <7b3c23b6-4344-5a5f-e521-2e1f51c3185c@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--dpjzn4ilr2tftklv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

  git branch --set-upstream-to=3Dfreebsd/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=3Dmain .
  git remote add origin https://git.freebsd.org/ports.git
  git branch --set-upstream-to=3Dorigin/main main
  git pull

--=20
 Dipl.-Inform. Felix Palmen  <felix@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

--dpjzn4ilr2tftklv
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAmBsWDwACgkQPvKLCrwC
2ioHBwf/RA0tdYQSvoiv61UENGihGkuDSD7qf+OI6oUZ69SE5r6IWNRWvB3t3Dft
yGMcRr5oAlYmNiQu3ajIvOU56x0/PcihJITyYbm9o4+ZaQFz0sDK8vIusBU25XSs
D/FVJDR+cGElPPInixZtx0G2kqSIQBO+G54vL2wRElBn6PjQQuMZCOzGXmYaC7e1
Qa/h2YVX+HQfRQsfHyNor5XepKOzqLi+XWFzHyUGZV6TDv7JypqMcJ69j6p699y9
DTUK8D74MeBrx5OGhH0ieosyWA/a+Uaty0zgQs6ve3qmi22u2sBD942bCmRgGQoL
P0XwkbXW75pHkXV7qtJIfeNKa+CBgQ==
=ZYvD
-----END PGP SIGNATURE-----

--dpjzn4ilr2tftklv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210406124652.menaukocmrjtlrmw>