开发者

Git already up to date unless I reset

I have a cloned repo I use for the live site and I have it pull from a bare repo. For some reason every time I execute "git pull" I get the already up to date message. But it's not up to date and not updated. If I do a git reset --hard HEAD^ and then git pull again, the changes come in.

What's the problem here and how do I fix it so that git pull will pull and mer开发者_如何转开发ge changes in without needing a hard reset?


That would be the case if are working on a DETACHED HEAD (see this SO question for more)

Git already up to date unless I reset

That happens when you checkout directly a SHA1 commit reference, for instance.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜