Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 2023 16:58:47 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-git <freebsd-git@freebsd.org>
Subject:   Working with forks: git-checkout(1) options -b and -t
Message-ID:  <802423f4-a29b-74ae-f2cc-ce8f91dbf373@gmail.com>
In-Reply-To: <CANCZdfqBUbbdLGdZJT55LdJvNuZ8okF50Xs0i7C1HbRSKsa43g@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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/09/2023 03:51, Warner Losh wrote:

> … Or 'git checkout -t jlduran/nanobsd-embedded-use-makefs' …


A doc tree example, now. Colour me confused.

% git -C /usr/doc remote add outpaddling 
https://github.com/outpaddling/freebsd-doc.git
% git -C /usr/doc checkout -b outpaddling-main --track outpaddling/main
fatal: 'outpaddling/main' is not a commit and a branch 
'outpaddling-main' cannot be created from it
% git -C /usr/doc checkout -b outpaddling-main --track outpaddling
fatal: 'outpaddling' is not a commit and a branch 'outpaddling-main' 
cannot be created from it
% git -C /usr/doc checkout -b outpaddling-main -t outpaddling/main
fatal: 'outpaddling/main' is not a commit and a branch 
'outpaddling-main' cannot be created from it
% git -C /usr/doc checkout -t outpaddling/main
fatal: 'outpaddling/main' is not a commit and a branch 'main' cannot be 
created from it
%

<https://github.com/outpaddling/freebsd-doc/branches>; there's only one 
branch, main.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?802423f4-a29b-74ae-f2cc-ce8f91dbf373>