git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christof Krüger" <git@christof-krueger.de>
To: "Mihamina Rakotomandimby" <mihamina@bbs.mg>
Cc: git@vger.kernel.org
Subject: Re: importing history
Date: Wed, 29 Jun 2011 16:25:50 +0200 (CEST)	[thread overview]
Message-ID: <348bd65ad7c7690bcce553fe3c8e0bfb.squirrel@mail.localhost.li> (raw)
In-Reply-To: <20110629164514.58175480.mihamina@bbs.mg>

Hi,

> Then I created an account in a forge (like github or so...), where I
> had to clone an empty GIT repository in order to begin to work.
> I dont have admin access to the forge, so no "scp" to the repo
> hosting possible.
Why did you have to clone an empty repository? It should be enough to add
the correct remote config directly in your "from-svn" repository and just
push it.

> Now, I have 2 "local" repos:
> - the one from the SVN
> - the empty one from the forge

Now that you already have cloned the empty repository you can just look at
the remote configuration in it:

 git config --list|grep remote

You should see something like the following:

remote.origin.url=user@example.com/path/to/repository.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

Go to your from-svn repository and add the above configuration, then "git
push origin master".

Good luck!

Regards,
  Chris

  reply	other threads:[~2011-06-29 14:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 13:45 importing history Mihamina Rakotomandimby
2011-06-29 14:25 ` Christof Krüger [this message]
2011-06-29 16:56   ` Andreas Schwab
2011-06-29 17:02     ` Christof Krüger
2011-06-29 21:35       ` Andreas Schwab
2011-06-30  5:00         ` Christof Krüger

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=348bd65ad7c7690bcce553fe3c8e0bfb.squirrel@mail.localhost.li \
    --to=git@christof-krueger.de \
    --cc=git@vger.kernel.org \
    --cc=mihamina@bbs.mg \
    /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).