title: Upload a file to a Gist with bash
body: <p>I usually paste error reports and logs on <a href="https://gist.github.com" rel="noreferrer">Gist</a> at Github, to exchange programming relevant debug information. Gist doesn't have a button to upload a file. So sometimes it is not so convenient to copy and paste your large errorreports into gists textarea for input.</p>
  
  <p>Is there a way to upload a file from the commandline into a new Gist in your Gist account?</p>
  
  <p>also creating a temporary git repository for the file to upload would help, I would automate this in a script then.</p>
  
  <p>In the end I would like to automate posting debug information of my programming project on github with one bash script</p>