How do i merge three different repositories belong to a same project (frontend,backend,and dashboard) into a single repository maintaining all commit history #138098
Replies: 3 comments
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Create a New Repository: Initialize a new local repository to serve as the combined project. Add Each Repository as a Remote: Add each individual repository (frontend, backend, dashboard) as a remote. Fetch and Relocate Code: For each repository, create a branch, move its code into a designated folder (e.g., frontend/, backend/, dashboard/), and commit. Merge Branches: Merge each branch into the main branch of the new repository (using --allow-unrelated-histories to retain commit history). Clean Up and Push: Remove the extra remotes, and push the combined repository to the remote. You can refer to my document for more details |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
How do i merge three different repositories belong to a same project (frontend,backend,and dashboard) into a single repository maintaining all commit history
Actually I am currently working on a personal project that contains its backend , frontend and a seprate dashboard code and their codes are currently now in 3 different repositories. Now i want these three repositories to be in single repository having three different sections for frontend , backend and dashboard respectively with their commit histories and also when i want to deploy this project using platforms like vercel , aws , docker etc , I can do that easily without any complications and without any money(for free).
Is this thing possible ?? If yes, Please help me, how i can achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions