Sunday, 31 July 2011

Fixing Git Remote Reference

Did a 'git pull' and saw this:

Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.

A quick bit of googling turned up http://stackoverflow.com/questions/4297795/configure-git-so-that-git-pull-instead-of-git-pull-origin-master, which indicated I needed to edit my .git/config file to contain this:

[branch "master"]
        remote = origin


The remote = origin line was missing, therefore git didn't know where to pull from.

No comments:

Post a Comment