Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marceloserpa/f21208b3ac2884b31e6e1bded8c984bb to your computer and use it in GitHub Desktop.
Save marceloserpa/f21208b3ac2884b31e6e1bded8c984bb to your computer and use it in GitHub Desktop.
Git: Create and Apply Patches

Create a PATCH from DIFF

git remote add remote_other https://github.com/diegopacheco/dynomite-docker.git
git remote -v
git fetch remote_other
git diff remote_other/master..master > mypatch.patch

Apply a PATCH from DIFF

git apply mypatch.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment