Re: Cloning empty repositories, was Re: What is the idea for bare repositories?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Wednesday, November 14, 2007 - 1:58 pm

Hi,

On Wed, 14 Nov 2007, Bill Lear wrote:


I have a better idea:

[the initial import, on another machine:]
% mkdir new_repo
% cd new_repo
% git init
[add content]
% git commit -a -m "Initial stuff"
% git remote add origin git://host/repo
% git push origin master

If you do not want to be bothered with setting up the default 
"remote" and "merge" config variables manually, it is reasonable to ask 
for support to do that in "git remote".

If you really think that this workflow has anything to do with cloning an 
empty repository, I cannot help you.  I mean, you did not need to clone 
the big, empty void to do the initial commit, or did you?

(I actually think that it is another example of cvs/svn damage, where you 
_need_ to clone first, or otherwise you will _never_ be able to commit 
to the repository.)

BTW I am somewhat disgusted by your usage of git:// for pushing.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What is the idea for bare repositories?, David Kastrup, (Mon Nov 12, 6:11 am)
Re: What is the idea for bare repositories?, Bruno Cesar Ribas, (Mon Nov 12, 6:19 am)
Re: What is the idea for bare repositories?, Johannes Schindelin, (Mon Nov 12, 6:57 am)
Re: What is the idea for bare repositories?, David Tweed, (Mon Nov 12, 7:20 am)
Re: What is the idea for bare repositories?, Jan Wielemaker, (Mon Nov 12, 9:19 am)
Cloning empty repositories, was Re: What is the idea for b ..., Johannes Schindelin, (Mon Nov 12, 9:34 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Mon Nov 12, 10:15 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Mon Nov 12, 10:30 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Mon Nov 12, 10:54 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Mon Nov 12, 10:57 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Mon Nov 12, 11:06 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Andreas Ericsson, (Mon Nov 12, 12:17 pm)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Mon Nov 12, 3:17 pm)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Tue Nov 13, 4:19 am)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Tue Nov 13, 4:56 pm)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Wed Nov 14, 1:58 pm)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Wed Nov 14, 5:28 pm)
Re: Cloning empty repositories, was Re: What is the idea f ..., Johannes Schindelin, (Thu Nov 15, 5:44 am)