計算機科学のブログ

ほしい物リスト

Git - GitHub - Searching Git Repositories - Git a Grep - subcmmand, blame

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 7.(Searching Git Repositories: Git a Grep)、SHARPEN YOUR PENCIL(535/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% cd gitanjali-aref-wedding-plans 
gitanjali-aref-wedding-plans % ls        
README.md	appetizers.md	dinner.md	drinks.md
gitanjali-aref-wedding-plans % git blame appetizers.md
99fd56e6 (Trinity   2021-07-05 14:01:36 -0400 1) # Gitanjali and Aref Reception: Appetizers
99fd56e6 (Trinity   2021-07-05 14:01:36 -0400 2) 
99fd56e6 (Trinity   2021-07-05 14:01:36 -0400 3) * Herb-sprinkled stuffed mushrooms
e9beff31 (Armstrong 2021-07-17 15:12:03 -0400 4) * Blinnis with spiced fruit chutney
b6c8c826 (Armstrong 2021-07-13 04:25:01 -0400 5) * Mini grilled cheese sandwiches
7886bce9 (Armstrong 2021-07-26 20:36:10 -0400 6) * Housemade sweet-potato chips topped with French onion dip
7886bce9 (Armstrong 2021-07-26 20:36:10 -0400 7) * Jackfruit cakes with Old Bay aioli
gitanjali-aref-wedding-plans % git remote 
origin
gitanjali-aref-wedding-plans % git remote -v
origin	https://github.com/looselytyped/gitanjali-aref-wedding-plans.git (fetch)
origin	https://github.com/looselytyped/gitanjali-aref-wedding-plans.git (push)
gitanjali-aref-wedding-plans %