<link href='https://www.blogger.com/dyn-css/authorization.css?targetBlogID=4278688165584866733&amp;zx=0587fca8-12ad-4c3a-9201-16d60623af8b' rel='stylesheet'/>

Thursday, June 14, 2018

Git で全ブランチから検索

ググったけどmacOSでぱっと動くのがなかったのでメモがてら書く。

全ローカルブランチから検索
% git grep keyword $(git branch | colrm 1 2)

リモート含む全ブランチから検索
% git grep keyword $(git branch -a | colrm 1 2)

No comments:

Post a Comment