Posted by & filed under GIT.

Ever get this error:

$ git pull origin master
fatal: Couldn't find remote ref master
Unexpected end of command stream

For me, the problem was that the URL I had entered was incorrect. I had just gotten done pasting the wrong URL:

$ git remote add origin http://scrabb.ly/

So to fix it, you’ll want to edit your .git/config file and change the URL to the proper one.

Thomas Hunter II

Support Thomas on Patreon. Thomas is the author of Advanced Microservices and a prolific public speaker with a passion for reducing complex problems into simple language and diagrams. His career includes working at Fortune 50's in the Midwest, co-founding a successful startup, and everything in between.

Tags: