English 中文(简体)
如何执行it,忽视所有变化
原标题:how to execute a git pull and ignore all changes
  • 时间:2011-11-22 23:59:37
  •  标签:
  • git

我需要不断从主力中抽取代码,以测试。

当我执行一些暴徒的指挥档案时,有人手写了,但一米没有做任何事。

如何执行拉动指挥,这样一来,就只能使用所拉走的最新承诺。

数据库似乎并不可行。

问题回答

你可以做些什么。

git reset --hard HEAD

之后

git pull

http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html”rel=“nofollow”http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html

你是跟踪你不应跟踪的档案。 :

Patient: "Doctor, it really hurts when I do this." Doctor: "Don t do that"





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签