Skip to content

Instantly share code, notes, and snippets.

@SomajitDey
Created April 21, 2021 07:12
Show Gist options
  • Save SomajitDey/3b0c234c5919be44409b5b43e8b7d97c to your computer and use it in GitHub Desktop.
Save SomajitDey/3b0c234c5919be44409b5b43e8b7d97c to your computer and use it in GitHub Desktop.
How to use GitHub as a pastebin/file-sharing without increasing your repo size or eating away from your free quota
  1. Create blob using API and extract its URL from the response using jq '.url'
  2. Give the URL to anybody you wanna share the file with. All he needs to do is download

Since no commit is pointing to the blob, it doesn't present itself in your repository history and therefore, doesn't increase repo size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment