title: Visual studio push to Github
body: <p>I have a project I started working on in visual studio and I want to push it to Github. I am new to Github. So far I have added the Github extension to VS and created a folder to store it on Github. I have signed into my github on VS and it's linked to the correct project.</p>
  
  <p>The issue is when I try to sync the project, I have followed this link:
  <a href="https://github.com/github/VisualStudio/blob/master/docs/using/publishing-an-existing-project-to-github.md" rel="nofollow noreferrer">https://github.com/github/VisualStudio/blob/master/docs/using/publishing-an-existing-project-to-github.md</a></p>
  
  <p>But I am unable to sync my VS project to my Github. The error message I am getting is:</p>
  
  <pre><code>    Error encountered while pushing branch to the remote repository: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes  before pushing again.
  Pushing master
  Error: failed to push some refs to 'https://github.com/ProjectExample/Main'
  Error: 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.
  
  Error encountered while pushing branch to the remote repository: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes  before pushing again.
  </code></pre>
  
  <p>Now I have tried to fetch in VS but it doesn't seem to making a difference, the project on my github is an empty folder with the exception of the README.md</p>
  
  <p>Sorry if this seems basic or not explained well, I am still learning how to use the Github extension with VS but I will do my best to clarify any questions. I am kinda unsure of what to do next or solve this, any comments will be much appreciated, thank you all for your input</p>