AKZN Notes

Archives for My Lazy and Forgetful Mind

Tag: repositories

How to merge two git branches that are in different repos/folders?

Combining two git repositories Use Case I have: folder_a/app_A folder_b/app_B I want to merge app_B into app_A and keep all history. How can I merge the branches together? switch to repo A cd folder_a Add repo B as a remote repository git remote add folderb /path/to/folder_b Pull B’s master branch into a local branch named […]