Skip to content

Instantly share code, notes, and snippets.

@joemaffei
Created August 29, 2019 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemaffei/1a6e6785792a76c3997de724bc43c0af to your computer and use it in GitHub Desktop.
Save joemaffei/1a6e6785792a76c3997de724bc43c0af to your computer and use it in GitHub Desktop.
Merge repository as folder of local repository
cd {localRepo}
git subtree add --prefix {localFolder} {otherRepoUrl} {otherRepoBranch}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment