This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: git conversion in progress
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 14 Jan 2020 16:16:04 +0000
- Subject: Re: git conversion in progress
- Ironport-sdr: F8uG7yHxrdej4vFkAGjvtKlkTLYTbGcWHr7ZBqS1L0dlv092WCONm9TMZNg/O5IhxrMEc1ETh3 jvxZueUz/jsSWzKvpiedYqbbtsfKEW71XfYeJO/um2zSGHJuhAAoJwrG3EVbFiv/Pg5/sNZaJm DaIbaZ2RN3rc24tv4gw+B2SY0xCrY1CWK4scoPloqoRtjx+kUsgDUt/yk5+ob0+6wKmIK4y68U z3XWEQyGoQB7FfNhDIsAzH90Y9pdIGy4XUHS4F3x8XKoVqZN7LbYHW9rt8eThrfLluD4Uq9j+Z QQk=
- Ironport-sdr: 5o4Mh4be1tg/ot9VXPLAFXH6EvqVyBh6UdkPl0+j+z6a80UwtaJOLV7zD4hQO6k/t9cOXCALA4 msM2L8zVP/eICSJ5huEeqhoWKRxxsWatPT6/44YO69syURXUDchYQzz8YJzAV8U3bi4rbHTFUI u7OihjYn1pCast0KTLYnRyN0DavO5lP+B82bDs7dp9VaeFqpTedQ3LP7WlOGoHvlDvq40TyHrN PM9ZLkekOjhTTuTV6XW6XBlHW4CFYCJI5R0hxw0MR9rprt1RHX0CGMHtrZQriHF8xcrvk+KgYo H3Y=
- References: <alpine.DEB.2.21.2001110102500.13991@digraph.polyomino.org.uk> <90f9f06c-b45b-ce2b-8063-258cb7509158@gjlay.de>
On Tue, 14 Jan 2020, Georg-Johann Lay wrote:
> A branch called branchname can be checked out with the following command:
>
> git clone -b branchname ...
>
> Referring to this as "checking out" is confusing IMO, because it may be
> confused with
> git checkout -b branchname
>
> Whereas the latter is a checkout of some branch (or changing the branch)
> within the same local copy, the former is *cloning* into an individual, fresh
> local copy which has only the mentioned branch.
I think the simple case for git beginners is having separate, independent
directories for each branch being used, but I see it's been changed to
describe checking out a branch in an existing clone instead.
--
Joseph S. Myers
joseph@codesourcery.com