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