I am working locally an I have my origin repo called "example" (this repository was created from scratch). I cloned it into "clone_example". Both have only one branch, called master.
When making a change to my clone_example's master branch and try pushing it to origin, everything works fine. I'm using:
git push origin master
When I make a change on my master branch in my origin repo and try pushing it to the clone, I get this error.
fatal: 'clone_example' 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.
The code I'm using is:
git push my_clone master
I'm following a tutorial and although I followed all the steps in there, I got this error. I also tried the command "git init" on my clone repo, but I still get this Error.
I am using Bash for Ubuntu fr Windows, can it have anything to do with this? Thx.