You can use git log-G<regex> --author=<pattern>
in Git 1.7.4 and later.
For this purpose, the following options would be useful:
--all
--branches[=<pattern>]
--tags[=<pattern>]
-c
—Displays diff.--cc
—Shows a short diff.--all
--branches[=<pattern>]
--tags[=<pattern>]
-c
—Displays diff.--cc
—Shows a short diff.If you use RubyMine, you can start Terminal on RubyMine and type this command.The Terminal can be found in the search window that starts with Shift-Shift or from the menu "View"→"Tool Windows"→"Terminal".
If you use it many times, setting the alias is useful.
git log-S<string>
—Similar to the -G
You can also add --pickaxe-regex
to make it a regular expression.git grep<regexp>$(git rev-list --all --author=<pattern>)
—This is how to do the same with another command.If you use it, it will be printed line by line. (See Post to Stack Overflow by Jeet for more information.)
© 2024 OneMinuteCode. All rights reserved.