I use Github and it works fine. But it looks like local repos behave very differently. I created a git repo by ‘cd’ into a folder and ran
I created 2 files, add and commit. Good so far. Then I decided to clone the local repo into another folder.
git clone <folderONe> <folderTwo>
Made some change in folderTwo. Then I wanted to push these changes back to the original folder which was folderOne. So I ran a
git push origin master
Got the following errors:
what should I do? All I want to do is push the changes from folderTwo back to the original repo which is in folderOne. This works fine when cloning from repos created on Github but creating repos locally seem to work differently.