git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to import a exist git repository into another git repository?
@ 2011-01-05  6:50 Edmond Halley
  2011-01-05  7:02 ` Andrew Garber
  0 siblings, 1 reply; 2+ messages in thread
From: Edmond Halley @ 2011-01-05  6:50 UTC (permalink / raw)
  To: git; +Cc: Halley

Hi,

I have two exit repos A and B. I would like A becomes part of B. For example:
original:
A
|-- a.cpp
`-- Makefile

B
|-- b.cpp
`-- Makefile

combined:
B
|-- b.cpp
|-- Makefile
`-- A
    |-- a.cpp
    `-- Makefile

The git log of repo A is kept in the combined repo.

I try google but the following methods turn out they do not work like
what I want. I can not view the log of original repo A after
combining.
1) http://stackoverflow.com/questions/1683531/how-to-import-existing-git-repository-into-another
Fail at the following command.
git checkout -b ZZZ other/master
error: Untracked working tree file 'Makefile' would be overwritten by merge.

2) http://thread.gmane.org/gmane.comp.version-control.git/5126/
git log only give the lastest commit message. I do not know how to get
the log if orignal repo A.

Thank you!

Best regards,
Halley

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

end of thread, other threads:[~2011-01-05  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-05  6:50 How to import a exist git repository into another git repository? Edmond Halley
2011-01-05  7:02 ` Andrew Garber

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