How to merge a different repositories as branches in one main repository

Hi everybody.

I'm working on library for ENC28J60 Ethernet module. Up to now, I created a different repositories for a new protocol (like UDP server/client, ARP, NTP and others). Now, I'll like to merge that different repositories as one main repository, but as branches in my main repository. How can I do this ? 

Thanks for yours helping :)

All replies

Merge project-a into project-b:

cd path/to/project-b
git checkout develop
git remote add project-a path/to/project-a
git fetch project-a --tags
git merge --allow-unrelated-histories project-a/develop
git remote remove project-a
Leave a Reply
You must be logged in to post a comment..
About the author