Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2023 18:39:01 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-git <freebsd-git@freebsd.org>
Subject:   Re: Working with forks
Message-ID:  <7e72f94c-dc87-0244-cd2c-59371ab4bf2d@gmail.com>
In-Reply-To: <CANCZdfrQiC3%2BbsYchsU7wWk3psW-rJ4ZY_O=GJ0G5PtMKpZ9vw@mail.gmail.com>
References:  <7e6a3a98-80a8-c787-fda5-65e924dbad34@gmail.com> <CAOtMX2h1tZ3oC0a%2BMbizW9xK4Ryt5AaPtA%2B1C3g%2BTO4=vYo65A@mail.gmail.com> <543e12ed-bc12-ee0e-4ddf-4423fe704d78@gmail.com> <CANCZdfqBUbbdLGdZJT55LdJvNuZ8okF50Xs0i7C1HbRSKsa43g@mail.gmail.com> <CANCZdfqON9z_sA4gc6=iwg3RXfNPs62ZmxUfuJcs1u3ib5n7yw@mail.gmail.com> <CANCZdfrQiC3%2BbsYchsU7wWk3psW-rJ4ZY_O=GJ0G5PtMKpZ9vw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/09/2023 05:37, Warner Losh wrote:
> …
>
> Or in this case I just did:
>
> % git remote add jlduran ssh://git@github.com/jlduran/freebsd-src.git 
> <http://git@github.com/jlduran/freebsd-src.git>;
> % git fetch jlduran
> % git checkout nanobsd-embedded-use-makefs


OK, that makes sense in the context of 
<https://git-scm.com/docs/git-checkout#_description>,

>> … exist a tracking branch in exactly one remote … with a matching name …
>>
Then 
<https://git-scm.com/docs/git-branch#Documentation/git-branch.txt--v>, I 
can see the name of the fork:

git -C /usr/src branch -vv

Nowadays, when creating a branch in GitHub I get the hint to have the 
name of my fork as the prefix- to the name. I don't know whether this is 
a native feature, or thanks to refined-github.

Thanks for the condensed examples. Very helpful.

(Sorry for abusing freebsd-git with questions that are not 
FreeBSD-specific. Experiences in Git-specific areas haven't been good, 
for me.)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7e72f94c-dc87-0244-cd2c-59371ab4bf2d>