From dfd59d8b130446fc9d11beeba3e826a194ec022f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 16 Aug 2020 06:52:42 -0300 Subject: TIL on searching in git: Make quoting of '' consistent --- _tils/2020-08-16-search-in-git.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '_tils/2020-08-16-search-in-git.md') diff --git a/_tils/2020-08-16-search-in-git.md b/_tils/2020-08-16-search-in-git.md index b76cdf5..552370b 100644 --- a/_tils/2020-08-16-search-in-git.md +++ b/_tils/2020-08-16-search-in-git.md @@ -9,7 +9,7 @@ ref: search-in-git Here's a useful trio to know about to help you search things in git: 1. `git show ` -2. `git log --grep='` +2. `git log --grep=''` 3. `git grep '' [commit]` ## 1. `git show ` @@ -25,7 +25,7 @@ git show v1.2 # shows commit tagged with v1.2 ``` -## 2. `git log --grep='` +## 2. `git log --grep=''` Search through the commit messages: @@ -33,7 +33,7 @@ Search through the commit messages: git log --grep='refactor' ``` -## 3. `git grep [commit]` +## 3. `git grep '' [commit]` Search content in git history: -- cgit v1.2.3