25
Aug
11

git import repo as subdir



Note: the merge will fail if you have no commits.


git remote add -f other_repo /path/to/other_repo
git merge -s ours --no-commit other_repo/master
git read-tree --prefix=path_where_other_repo_will_be/ other_repo/master -u

Advertisements

0 Responses to “git import repo as subdir”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 223,848 hits

%d bloggers like this: