title: I can't push my code and keep getting the same error no matter what I do
body: <p>I'm trying to push my code to my remote branch but keep receiving this error:</p>
  
  <pre><code>! [rejected] (non-fast-forward)
  error: failed to push some refs to 'git@github.com:
  hint: Updates were rejected because the tip of your current branch is behind
  hint: its remote counterpart. Integrate the remote changes (e.g.
  hint: 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details
  </code></pre>
  
  <p>I think what may have caused this was the fact that I fixed a typo in my README.md on github instead of through my local environment. </p>
  
  <p>I've looked all over stack overflow and tried the commands they mentioned for this problem such as <code>git pull</code> , <code>git pull --rebase</code> , <code>git pull origin master</code> , <code>git push --f</code> and many others with no avail. </p>
  
  <p>I've also tried the answers in the following questions, with no success:</p>
  
  <p><a href="https://stackoverflow.com/questions/25237959/updates-were-rejected-because-the-tip-of-your-current-branch-is-behind-hint-its">Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g [duplicate]</a>  </p>
  
  <p><a href="https://stackoverflow.com/questions/10298291/cannot-push-to-github-keeps-saying-need-merge">Cannot push to GitHub - keeps saying need merge</a>  </p>
  
  <p><a href="https://stackoverflow.com/questions/1709177/git-pull-a-certain-branch-from-github">Git pull a certain branch from GitHub
  </a></p>
  
  <p>I also tried <code>git pull upstream master</code> and I get this error: </p>
  
  <pre><code>fatal: 'upstream' does not appear to be a git repository
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>