Git - Searching Git Repositories: Git a Grep - log command, commit message, patch option
Head First Git: A Learner’s Guide to Understanding Git from the Inside Out、 Raju Gandhi(著)、 O’Reilly Mediaの Chapter 7.(Searching Git Repositories: Git a Grep)、SHARPEN YOUR PENCIL(590/715)の解答を求めてみる。
入出力結果(Terminal, Zsh)
% git log --grep 'add first draft of appetizer and drink menus'
commit 99fd56e6628bb154a64b8171f8f3af2be2f96c6e
Author: Trinity <trinity@eventplannerz.com>
Date: Mon Jul 5 14:01:36 2021 -0400
add first draft of appetizer and drink menus
% ls
README.md appetizers.md dinner.md drinks.md
% git log --grep 'add first draft of appetizer and drink menus' -p
commit 99fd56e6628bb154a64b8171f8f3af2be2f96c6e
Author: Trinity <trinity@eventplannerz.com>
Date: Mon Jul 5 14:01:36 2021 -0400
add first draft of appetizer and drink menus
diff --git a/appetizers.md b/appetizers.md
new file mode 100644
index 0000000..ceeaf08
--- /dev/null
+++ b/appetizers.md
@@ -0,0 +1,5 @@
+# Gitanjali and Aref Reception: Appetizers
+
+* Herb-sprinkled stuffed mushrooms
+* Blinis with salmon, caviar, and crème fraiche
+* Mini roast-beef sandwiches
diff --git a/drinks.md b/drinks.md
new file mode 100644
index 0000000..0fcee53
--- /dev/null
+++ b/drinks.md
@@ -0,0 +1,8 @@
+# Gitanjali and Aref Reception: Signature Drinks
+
+* The Manhattan Merge:
+ Two become one in this updated take on a classic bourbon-vermouth cocktail
+* The Git Gimlet:
+ Gitanjali’s favorite drink, with refreshing lime and juniper notes
+* The Git Log Cabin:
+ Apple brandy and maple syrup will take you on an autumn trip through our favorite couple’s history
%