Re: Cleaning up git user-interface warts
- From
Han-Wen Nienhuys <hanwen@xs4all.nl>
- Date
- Nov 16, 2006, 16:42 UTC
- Message-ID
- <455C94FA.3050903@xs4all.nl>
- In-Reply-To
- <Pine.LNX.4.64.0611160814560.3349@woody.osdl.org>
Linus Torvalds escreveu:
> So current rule (and this is not new, it's always been true): the ONLY > time you use "git init-db" is when you are going to start a totally new > project. Never _ever_ otherwise. If you want to track another project, use > "git clone".
Actually, only a 2 weeks ago, you suggested that I share the website and main source code for my project in a single repository for reasons of organization.
In this setup I find it logical to do
git init-db git pull ..url.. website/master
to wind up with just the 5mb website, instead of the complete 70mb of packed source code with all of its branches and tags.
Show 9 quoted lines
> It's not that it isn't typical, it's that you are using the wrong model. > Maybe it's not well documented, I can easily give you that, but ALL your > problems come from that fundamental starting point: you shouldn't have > used "git init-db" in the first place. > > Somebody want to document it? > > Alternatively, we certainly _could_ make "git pull" just accept an empty > git repo, and make it basically create the current branch.
Yes, I would like that.