Created
December 28, 2020 19:27
-
-
Save DerekNonGeneric/5584fdbab5106e5c07332fb8f76922c6 to your computer and use it in GitHub Desktop.
Apply a patch from GitHub URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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