I cannot understand how to work with Git (and Visual Studio 2015).
What I'm doing:
- Copy one of my project to a new folder. Init repo there.
- Clone the repo
- Modify one of the .cpp files in the cloned repo
- Stage and commit the changes.
- Get the error:
Failed to push to the remote repository. See the Output window for more details.
Output:
Error encountered while publishing branch to the remote repository: Local push doesn't (yet) support pushing to non-bare repos.
After more than an hour of google search I have no idea what to do.
Why cannot I just create a repo (сonsider it as 'remote'), then clone (to any considered 'local' repo) it and then commit & push new local changes to the 'remote'?
Simply put,
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?