Skip to content

Instantly share code, notes, and snippets.

@DerekNonGeneric
Created December 28, 2020 19:27
Show Gist options
  • Save DerekNonGeneric/5584fdbab5106e5c07332fb8f76922c6 to your computer and use it in GitHub Desktop.
Save DerekNonGeneric/5584fdbab5106e5c07332fb8f76922c6 to your computer and use it in GitHub Desktop.
Apply a patch from GitHub URL
#!/usr/bin/fish
#/gap.fish
# Apply a patch from GitHub URL.
# usage: gap <url>
# https://twitter.com/targos89/status/1258779153052184579
function gap
curl -L "$argv[1].patch" | git am -3
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment