Skip to content

Instantly share code, notes, and snippets.

@dobladov
Created October 25, 2024 11:48
Show Gist options
  • Select an option

  • Save dobladov/b55ed0269c5463fd03731ef773863082 to your computer and use it in GitHub Desktop.

Select an option

Save dobladov/b55ed0269c5463fd03731ef773863082 to your computer and use it in GitHub Desktop.
Create a patch of an opened PR
## On the branch to patch
git format-patch master --stdout > [name].patch
## Change to the target branch
git checkout [branch]
## Applays the patch while indicating conflicts
git apply --3way changes.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment