English 中文(简体)
• 如何搜索回波的历史?
原标题:How to search history of a repo?

承诺很多。 我知道档案的名称和the(显示,有些系数准确) 我期待的是,但我不知道它所做的什么。 这已不再是目前的情况,这是肯定的,也不是以前几个例子。

*How让我在具体档案中(或在整个邮袋内,我不小心)搜寻time-wise,这样说,在他发现之前,它就通过所有承诺?

Interested in both mercurial & git. Use both currently, and I don t really know whether this is possible in either one of them.

最佳回答
问题回答

凭借 g子,你可以进行 pick子搜查。 <代码>gitlog有两个有趣的国旗:

-S<string>
    Look for differences that introduce or remove an instance of <string>.
    Note that this is different than the string simply appearing in diff
    output; see the pickaxe entry in gitdiffcore(7) for more details.

这让你发现,他们承诺增加或消除某种扼杀。

-G<regex>
    Look for differences whose added or removed line matches the given
    <regex>.

This lets you find commits where an added or removed line matches the regular expression.

可以通过过滤<条码>git日志和<条码>的输出,例如<条码>git日志-Scoeff - myfile.c。

Mercurial (fresh) have revsets, 这将使发现任何东西比使用(普通)的颗粒更容易。





相关问题
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 ...