5
So we have a branch in our git repo called creative_market
. I run the command git checkout --track origin/creative_market
which works fine. All of the changes that should be on the creative_market
branch are present. However, if I run git pull
I get this error:
Your configuration specifies to merge with the ref 'creative_market' from the remote, but no such ref was fetched.
In addition, if I do git pull origin creative_market
I get:
fatal: Couldn't find remote ref creative_market
fatal: The remote end hung up unexpectedly
Running a git branch -a
clearly shows:
remotes/origin/creative_market
And my .git/config
file shows:
[branch "creative_market"]
remote = origin
merge = refs/heads/creative_market
Which lines up with everything else in my .git/config
file.
I am stumped here. Any ideas?
Thanks Stephen. I believe you are right that the branch didn't exist anymore, so I fixed it by doing
git checkout --track origin/creative_market
and then pushing it viagit push origin creative_market
which seems to have fixed everything. I'm guessing your solution will work as well, so I'll mark it as correct. Thanks again! – Mike Lentini – 2012-05-07T16:10:47.373@MikeLentini That's a much quicker fix, I added it into my answer. Thanks. – Stephen Jennings – 2012-05-07T22:58:21.903