Can I merge multiple repositories into one single repository while keeping version history? #143759
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It is possible and depends on how you need it. Here are some examples |
Beta Was this translation helpful? Give feedback.
-
If you have created multiple repositories for different modules of a course and now find it cluttered, you can merge them into a single repository while preserving all the information. Here’s how you can do it:
By following these steps, you can merge all your repositories into one while preserving the commit history of each repository. ! |
Beta Was this translation helpful? Give feedback.
If you have created multiple repositories for different modules of a course and now find it cluttered, you can merge them into a single repository while preserving all the information. Here’s how you can do it:
Create a New Repository:
First, create a new repository on GitHub or locally on your machine.
git init all-coursera cd all-coursera
Add the Other Repositories as Remotes:
Add the repositories you want to merge as remotes in the new repository.
Fetch the Commits from the Other Repositories:
Fetch the commits from the other repositories.
Create New …