Re: Working with forks

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Sat, 09 Sep 2023 17:39:01 UTC
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.)