Skip to content

Instantly share code, notes, and snippets.

@zehpatricio
Created March 24, 2022 14:25
Show Gist options
  • Save zehpatricio/411152f154d3922fb219378e9c4d19e6 to your computer and use it in GitHub Desktop.
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.
@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