git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jay Soffian <jaysoffian@gmail.com>
To: git <git@vger.kernel.org>
Subject: TODO: git should be able to init a remote repo
Date: Tue, 13 Apr 2010 13:30:44 -0400	[thread overview]
Message-ID: <i2i76718491004131030sc2f8ffa3u97a91aa9a57923b5@mail.gmail.com> (raw)

[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.

             reply	other threads:[~2010-04-13 17:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 17:30 Jay Soffian [this message]
2010-04-13 19:58 ` TODO: git should be able to init a remote repo 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=i2i76718491004131030sc2f8ffa3u97a91aa9a57923b5@mail.gmail.com \
    --to=jaysoffian@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).