title: How to push to GitHub using Git Bash?
body: <p>Whenever I need to push my new local commits to GitHub I use the Windows GitHub desktop application. I open it up and click the sync button. I want to be able to do it from the Git Bash command line. I think the command I want to use is:</p>
  
  <p><code>git push origin master</code></p>
  
  <p>but when I do that I get some sort of invalid username error. I tried this:</p>
  
  <p><a href="https://stackoverflow.com/a/20871910/280319">https://stackoverflow.com/a/20871910/280319</a></p>
  
  <p>but when I do that and <code>git push origin master</code>I get another error saying <code>git@github.com:user/repo.git</code> is an invalid repo.</p>
  
  <p>Now I'm at the point where I changed my origin back to <code>https://github.com/user/repo.git</code>(I think that's what it was set to before). But since I did that my local repo is now not "pointing" to the correct remote(I can tell because <code>git status</code> doesn't list 1 out of sync commit and neither does the GitHub desktop app).</p>
  
  <p>This is all just on a test repo of mine.</p>
  
  <p>So what do I have to do so that I can push to GitHub using the Git Bash command line?</p>