Skip to content

Instantly share code, notes, and snippets.

@yaleksandr89
Created February 22, 2020 13:30
Show Gist options
  • Save yaleksandr89/46507f1850c11d645a0b7caf238795e0 to your computer and use it in GitHub Desktop.
Save yaleksandr89/46507f1850c11d645a0b7caf238795e0 to your computer and use it in GitHub Desktop.
1. cd path/to/project-B
2. git remote add project-a path/to/project-A
3. git fetch project-A
4. git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
5. git remote remove project-A #опционально, если удалить репу коммиты остануться - названия веток нет.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment