Skip to content

Instantly share code, notes, and snippets.

View pmatarodrigues's full-sized avatar
:shipit:

Pedro Mata Rodrigues pmatarodrigues

:shipit:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pmatarodrigues on github.
  • I am pmatarodrigues (https://keybase.io/pmatarodrigues) on keybase.
  • I have a public key ASBbuY6rp1hWqrYk7pbx2xM1UqWCVlWE7PCwN0R4YPyhywo

To claim this, I am signing this object:

@pmatarodrigues
pmatarodrigues / merge_two_git_repos.txt
Created March 1, 2019 12:41
Merge two Git repositories
## MERGE PROJECT-A INTO PROJECT-B
cd path/to/PROJECT-B
git remote add project-a path/to/PROJECT-A
git fetch PROJECT-A --tags
git merge --allow-unrelated-histories PROJECT-A/master # or whichever branch you want to merge
git remote remove PROJECT-A