Today while I was playing around with git, I found my self unable to push anything to my newly created repository. This is the error that I got:

$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
error: failed to push some refs to 'git@github.com:elleestcrimi/coffee.git'

After Googling around for a few minutes I found the solution! Which is dreadfully simple! All you have to do is this:

$ git push origin master
VN:F [1.9.17_1161]
Rating: +1 (from 1 vote)
Quick Tip #4: No refs in common and none specified, 100% based on 1 rating

Leave Comment

13