Skip to content

Instantly share code, notes, and snippets.

@daviguima
Created March 9, 2020 14:06
Show Gist options
  • Save daviguima/fc129e4a46d16b00bac1d67360a4d971 to your computer and use it in GitHub Desktop.
Save daviguima/fc129e4a46d16b00bac1d67360a4d971 to your computer and use it in GitHub Desktop.
upload file to gist.github.com using curl
curl -X POST -d '{"public":true,"files":{"test.txt":{"content":"String file contents"}}}' -u mgarciaisaia:mypassword https://api.github.com/gists
# https://stackoverflow.com/questions/34048241/how-to-create-a-gist-on-command-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment