Re: Why is git clone not checking out files?
- From
Bill Lear <rael@zopyra.com>
- Date
- Jan 30, 2007, 19:36 UTC
- Message-ID
- <17855.40530.256749.539318@lisa.zopyra.com>
- In-Reply-To
- <Pine.LNX.4.63.0701302013420.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On Tuesday, January 30, 2007 at 20:15:37 (+0100) Johannes Schindelin writes:
Show 12 quoted lines
>On Tue, 30 Jan 2007, Bill Lear wrote: >> On Tuesday, January 30, 2007 at 11:04:57 (-0800) Linus Torvalds writes: >> >> >Anyway, it's certainly easy to fix. Bill, you can either: >> > >> > - just rename the "topic" branch to "master" >> >> I don't think I want this. I want to know I'm on the topic branch of >> that repo, anything else really makes me nervous. > >The name in the bare repository does not matter as much as your _local_ >name.
Well, being a git newbie, it kinda matters to me. I need linearity right now. Anything that swerves is likely to result in me and my project stuck in the weeds.
So, I tried a straight fetch:
% GIT_DIR=. git fetch git://source/public/project
This has one branch:
% GIT_DIR=. git branch topic
Then a clone of that:
% cd over_there % git clone /repos/git/project [...] % cd project % git branch topic
All is well exactly what I want and expect ... except:
% ls -a . .. .git
No checkout was done. I'm finding this extremely confusing.
I just want to work on the branch, and I want it identified as such, and I want it checked out, and I want some candy.
Sorry to whine, just wish I understood this better.
Bill