Kazuho's Weblog
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
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment