Reputation: 4266
I'm trying to get more familiar with git. I have had no issues creating a repo on github and then cloning it to my machine either through http or ssh. Once I've cloned it I can then edit files locally and push the changes back no problem. When trying to create a new repo on my machine and then push this to git, is where my problems begin. I followed the steps from github here but get the following error message
git push origin masterfatal: https://github.com/robocode/testgit.git/info/refs?service=git-receive-pack not found: did you run git update-server-info on the server?
I have checked that my local PATH is pointing to git, and to the receive and upload packs also and this seems fine, echoing my PATH variable contains the following git paths
:/usr/bin/git-upload-pack:/usr/bin/git:
Upvotes: 1
Views: 486
Reputation: 387667
You need to actually create the repository in your GitHub account first. It is not enough to just push to GitHub to get it created. Instead log into GitHub, and choose the “Create a new repo” (third from the right, at the top). Then after the repository is created, you can start to push things into it.
Upvotes: 1