Xun Yang
Xun Yang

Reputation: 4419

Git fetch: origin/master different from FETCH_HEAD

I'm using MsysGit. After I do git fetch origin master, and run git diff master origin/master nothing shows up. But if I run git diff master FETCH_HEAD the differences will show up. Haven't changed any settings, how come it's like that?

Note I have the line fetch = +refs/heads/*:refs/remotes/origin/* existing in .git/configg

Upvotes: 2

Views: 305

Answers (1)

VonC
VonC

Reputation: 1329112

The easiest solution is to upgrade the msysgit installation (see msysgit releases).

As I mention in "git fetch, FETCH_HEAD and origin/master", since git 1.8.4 (August 2013) git fetch origin master will actually update origin/master, not just FETCH_HEAD.

Upvotes: 2

Related Questions