No refs in common and none specified; doing nothing

I got the error "No refs in common and none specified; doing nothing" from Git the other day when trying git push to a remote repost. I checked the config and all seemed ok but after some googling it seems this error happens when you clone an empty repos. To solve you need to do at least one push specifying both origin and master.

view plain print about
1git push origin master

After you've done this once you can then simply use

view plain print about
1git push

Posted: 10-Oct-2010

View: 4040

Permalink: here

Comments

You can also "git push --all", which will do effectively the same thing.

#1 Rick O
11/Oct/10 12:10 AM