From: Daniel Barkalow <barkalow@iabervon.org>
To: git@vger.kernel.org
Subject: Starting a new project remotely
Date: Sun, 15 Jan 2006 13:45:01 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.64.0601151323320.25300@iabervon.org> (raw)
Is there something currently that acts like git-clone, except that it sets
up automatic connections in the opposite direction? That is, you run it in
a repository with no origin, and it pushes the data to the specified
location (which probably needs to be set up already as an empty
repository) and sets the local side's origin remote to the location given.
This recipe seems to work:
git branch origin master
echo >$GIT_DIR/remotes/origin \
"URL: $repo
Pull: $head_points_at:$origin"
git push origin $origin:refs/heads/$head_points_at
(where $origin is "origin", $head_points_at is "master", $repo is the
target repository, "origin" is the remote you want to create, and "master"
is the head that currently holds the commit you want to push)
-Daniel
*This .sig left intentionally blank*
next reply other threads:[~2006-01-15 18:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-15 18:45 Daniel Barkalow [this message]
2006-01-15 19:24 ` Starting a new project remotely Junio C Hamano
2006-01-15 20:01 ` Daniel Barkalow
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=Pine.LNX.4.64.0601151323320.25300@iabervon.org \
--to=barkalow@iabervon.org \
--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