Skip to content

Instantly share code, notes, and snippets.

@zhaozzq
Last active November 27, 2017 02:41
Show Gist options
  • Save zhaozzq/9067e698dc3117bbcac75692bed9a278 to your computer and use it in GitHub Desktop.
Save zhaozzq/9067e698dc3117bbcac75692bed9a278 to your computer and use it in GitHub Desktop.
Git
  • 添加 origin
git remote add origin path/to/repository
  • If you want to merge project-a into project-b:
cd path/to/project-b
git remote add project-a path/to/project-a
git fetch project-a
git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
git remote remove project-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment