title: git push to GitHub repository branch gives error "src refspec master does not match any"
body: <p>I forked the Flask repository and cloned its website branch from GitHub like</p>
  
  <pre><code>git clone --recursive https://github.com/lovesh/flask.git -b website
  </code></pre>
  
  <p>Then i configured remote like</p>
  
  <pre><code>git remote add upstream https://github.com/lovesh/flask.git -t website
  git fetch upstream
  </code></pre>
  
  <p>Then i made the changes(i didnt create any additional files but modified 2 files) i had to make then added the files and committed the changes like this</p>
  
  <pre><code>git add .
  git commit .
  </code></pre>
  
  <p>This prompted me for a comment for the commit and i entered the comment. Now it showed me</p>
  
  <pre><code>2 files changed, 69 insertions(+), 7 deletions(-)
  </code></pre>
  
  <p>But when i try to push these changes to my GitHub account</p>
  
  <pre><code>git push origin master
  </code></pre>
  
  <p>it shows the error</p>
  
  <pre><code>error: src refspec master does not match any.
  error: failed to push some refs to 'https://github.com/lovesh/flask.git'
  </code></pre>
  
  <p>I looked around and people who had this issue said that they did not commit the changes as <a href="https://stackoverflow.com/a/7572252">here</a> and <a href="https://stackoverflow.com/q/5802426/535962">here</a>. But i did commit even then it shows me this error.
  To confirm i tried</p>
  
  <pre><code>git status 
  </code></pre>
  
  <p>and it showed</p>
  
  <pre><code># On branch website
  # Your branch is ahead of 'origin/website' by 1 commit.
  #
  nothing to commit (working directory clean)
  </code></pre>
  
  <p>Also <code>git log</code> also shows my commit in the log. I am new to git. Am i missing something?</p>