title: Git and Visual Studio: How to work with remote repo?
body: <p>I cannot understand how to work with Git (and Visual Studio 2015).<br>
  What I'm doing:</p>
  
  <ol>
  <li>Copy one of my project to a new folder. Init repo there.</li>
  <li>Clone the repo</li>
  <li>Modify one of the .cpp files in the cloned repo</li>
  <li>Stage and commit the changes.</li>
  <li>Get the error: </li>
  </ol>
  
  <p><code>Failed to push to the remote repository. See the Output window for more details.</code> </p>
  
  <p><strong>Output:</strong><br>
  <code>Error encountered while publishing branch to the remote repository: Local push doesn't (yet) support pushing to non-bare repos.</code></p>
  
  <p>After more than an hour of google search I have no idea what to do.<br>
  Why cannot I just create a repo (сonsider it as 'remote'), then clone (to any considered 'local' repo) it and then commit &amp; push new local changes to the 'remote'?</p>
  
  <p><em>Simply put,</em><br>
  I just try to make one folder with 'remote' repo and the other with 'local' and try to push from 'local' to 'remote'. Is it a wrong logic?</p>