title: Automatically create github repo, cool. But how to automatically do first commit
body: <p>I'm writing a bash script to automatically setup a private github repo, as well as setup a <a href="http://deployhq.com" rel="nofollow">deployHQ</a> project for the same. This works well. However I can not add the GitHub repository to deployhq (via bash script using curl api calls) seemingly because I figure that there hasn't been an initial commit yet.</p>
  
  <p>The idea of the script is to set everything up initially. From GitHub to deployhq to uploading deployhq ssh-rsa keys to the github repository - For each client website we begin to work on.</p>
  
  <p>I'm using API keys, and in particular I'm using a personal access token to send commands to GitHub.</p>
  
  <p>So my question is, how do I setup a new repository on GitHub <strong>with an initial commit</strong>, before the project has even started? (in order to satisfy deployhq)</p>
  
  <p>I figure I need to use the API key to do this, as to avoid any user prompts. </p>
  
  <p>It could just be a simple <code>README.md</code> file. </p>
  
  <p>This is what I'm using so far (which works).</p>
  
  <p>Note: obviously this is just part of the script.</p>
  
  <pre><code>SETUP_GITHUB_PROJECT_JSON='{
  "name": "'$DHQ_PROJECT_PERMALINK'",
  "description": "This project is a test",
  "private": "true"
  }'
  
  SETUP=`curl -X POST -d "$SETUP_GITHUB_PROJECT_JSON" -H "$HEADER_ACCEPT" -H "$HEADER_CONTENT_TYPE" -u $GITHUB_API_KEY:x-oauth-basic "$GITHUB_BASE_URL"user/repos`
  </code></pre>
  
  <p>Happy to clarify as needed.</p>