Skip to content

Instantly share code, notes, and snippets.

@skolomiiets
Last active September 20, 2019 16:27
Show Gist options
  • Save skolomiiets/a0bd09da4b0b6d437a65d709e4607304 to your computer and use it in GitHub Desktop.
Save skolomiiets/a0bd09da4b0b6d437a65d709e4607304 to your computer and use it in GitHub Desktop.
Curl github token check
#!/usr/bin/env bash
curl --header 'Authorization: token $TOKEN' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
--location https://api.github.com/repos/owner/repo/contents/path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment