git: You asked me to pull without telling me which branch …

Posted Posted by Wes in Version Control     Comments 2 comments
Jul
1

Received this error when trying to pull from a remote origin:

You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either.


To fix, I added this to .git/config:

2 Comments to “git: You asked me to pull without telling me which branch …”

  • $ git config branch.master.remote origin
    $ git config branch.master.merge refs/heads/master

  • Thanks for that, that helped me. I can’t figure out why git believes i won’t telled which branch i want to use, because i WAS already in the master branch and there is no other branch in the online repo.

Post comment

about databasically

We live and work in Kansas City, USA.

We're passionate about helping small businesses succeed and want to help you use technology to get more done.

From server, desktop, network management to programming custom web applications in Ruby on Rails, we're here to lend a hand.

Contact us if you have any questions!