Created
March 24, 2022 14:25
-
-
Save zehpatricio/411152f154d3922fb219378e9c4d19e6 to your computer and use it in GitHub Desktop.
This batch scrip creates a gist for a given GitHub raw file URL and a out filename. You need to have cURL and GitHub CLI (gh) installed.
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
@ECHO OFF | |
set git_file=%1 | |
set out=%2 | |
curl %git_file% > %out% | |
gh gist create %out% | |
del %out% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment