git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TODO: git should be able to init a remote repo
@ 2010-04-13 17:30 Jay Soffian
  2010-04-13 19:58 ` Ilari Liusvaara
  2010-04-14  9:40 ` Jeff King
  0 siblings, 2 replies; 6+ messages in thread
From: Jay Soffian @ 2010-04-13 17:30 UTC (permalink / raw)
  To: git

[Mostly I'm sending this so I can add a "TODO" label to it in my gmail.] :-)

With modern git, setting up a remote bare repo that you can push to is
finally down to a reasonable number of commands:

$ ssh remote git init --bare myproject.git
$ git remote add -m master origin remote:myproject.git
$ git push -u origin master

But we can do better. I was thinking something like:

$ git remote init [--push] [--mirror] <name> <ssh_url>

This would perform all of the steps above, except for the push itself,
unless given --push (in which case, that too). This is meant to
simplify what I believe is the common case of setting up remote repos.

j.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-14 13:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-13 17:30 TODO: git should be able to init a remote repo Jay Soffian
2010-04-13 19:58 ` Ilari Liusvaara
2010-04-13 21:42   ` Jay Soffian
2010-04-14  9:40 ` Jeff King
2010-04-14 13:28   ` Junio C Hamano
2010-04-14 13:46     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).