git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: JörgenHägg <jorgen.hagg@axis.com>
To: git@vger.kernel.org
Subject: Copying files and keeping the history
Date: Thu, 11 Jun 2009 15:20:05 +0200	[thread overview]
Message-ID: <18567.1244726405@zev.se.axis.com> (raw)


I have two completely different git repositories, A and B.

I want to move a file from repo A to B without losing the files history.
That is, I want the commit message and all other info from
each commit where the file was included to generate new
commits in repo B.
(Yes, I know git manages content, not files. :-)

In other words, export a bunch of commits, filtering out the
patches for the file and import these in another repo.

Sort of importing from cvs to git, only the source and destination
are both git repositories.

I tried tailor from git to git, but that was probably not what tailor
wanted to do. :-)

Is this somehow possible?


             reply	other threads:[~2009-06-11 17:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 13:20 JörgenHägg [this message]
2009-06-11 18:29 ` Copying files and keeping the history Sverre Rabbelier
2009-06-12  3:44   ` Avery Pennarun

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=18567.1244726405@zev.se.axis.com \
    --to=jorgen.hagg@axis.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).