Skip to content

Instantly share code, notes, and snippets.

@jimmyhoran
Created March 31, 2019 04:21
Show Gist options
  • Save jimmyhoran/cf2ba2eec5dffcc9001f5c72269479fc to your computer and use it in GitHub Desktop.
Save jimmyhoran/cf2ba2eec5dffcc9001f5c72269479fc to your computer and use it in GitHub Desktop.
Copy git commits across repositories
/path/to/1 $ git format-patch sha1^..sha1
/path/to/1 $ cd /path/to/2
/path/to/2 $ git am -3 /path/to/1/0001-…-….patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment