El 14/11/2007, a las 21:16, Bill Lear escribió:
% mkdir new_repo
% cd new_repo
[add content]
% git commit -a -m "Initial stuff"
% git config remote.origin.url git://host/new_repo
% git push
[ach! fails! what's up??]
[poke, read, poke some more, try other things..]
[try setting the remote.origin.fetch? No, that doesn't work]
[try setting branch.master.remote? Just edit by hand??]
% git push master
[fails again; read some more; think, think, think...]
% git push origin master
[aha! finally it works]
Instead of using git-config I think the following would have worked:
git remote add origin git.example.com:/pub/git/path_repositories/
repo.git
git push --all
I guess it is not necessarily obvious the first time, which more than
anything makes this a documentation issue. I now can't remember how I
learnt this; probably by reading this list.
Cheers,
Wincent
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html