{"author_name":"suzu_v","categories":["git"],"image_url":null,"author_url":"https://blog.hatena.ne.jp/suzu_v/","width":"100%","url":"https://suzuken.hatenablog.jp/entry/2018/12/05/155040","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuzuken.hatenablog.jp%2Fentry%2F2018%2F12%2F05%2F155040\" title=\" \u5c65\u6b74\u304b\u3089\u904e\u53bb\u306b\u3042\u3063\u305f\u30b3\u30fc\u30c9\u3092\u8abf\u3079\u308b - \u3059\u305a\u3051\u3093\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","description":"\u666e\u6bb5\u3069\u3046\u3084\u3063\u3066\u3044\u308b\u304b\uff1f\u3068\u3044\u3046\u306e\u3092\u30e1\u30e2\u3063\u3066\u304a\u304f\u3002git grep \u3068 git log \u3092\u3064\u304b\u3046\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u3002 git grep $ git grep -w 'i-want-search-something' $(git rev-list --all) \u904e\u53bb\u306ecommit\u3059\u3079\u3066\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u3002\u3082\u3057Path\u3092\u7d5e\u308a\u305f\u3044\u306a\u3089\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3002 $ git grep -w 'i-want-search-something' $(git rev-list --all -- path/to/dir) -- path/to/dir git log $ git log -S 'i-want-se\u2026","blog_url":"https://suzuken.hatenablog.jp/","height":"190","title":" \u5c65\u6b74\u304b\u3089\u904e\u53bb\u306b\u3042\u3063\u305f\u30b3\u30fc\u30c9\u3092\u8abf\u3079\u308b","blog_title":"\u3059\u305a\u3051\u3093\u30e1\u30e2","provider_url":"https://hatena.blog","published":"2018-12-05 15:50:40","provider_name":"Hatena Blog"}