title: Create Github gist using file, with Gist API
body: <p>I am attempting to make a github gist using the following command</p>
  <pre><code>curl -X POST -d '{&quot;public&quot;:true,&quot;files&quot;:{&quot;test.txt&quot;:{&quot;content&quot;:&quot;String file contents&quot;}}}' -u mgarciaisaia:mypassword https://api.github.com/gists
  </code></pre>
  <p>How should I edit the command such that it uploads a file on my local computer to the new gist, instead of taking content in a string from the command line?</p>