Moving Git repository content to another repository preserving history
问题 I am trying to move only the contents of one repository (say repo1) to another existing repository (say repo2) using the following commands; git clone repo1 git clone repo2 cd repo1 git remote rm origin git remote add repo1 git push But its not working. I reviewed the other similar post but i only found moving the folder not the contents. 回答1: I think the commands you are looking for are: cd repo2 git checkout master git remote add r1remote **url-of-repo1** git fetch r1remote git merge