From 81f9099a1f4466e6c264bd2eb1ef0bb0a48cb389 Mon Sep 17 00:00:00 2001 From: eliranm Date: Thu, 23 Mar 2017 15:09:46 +0200 Subject: [PATCH] add change by content search tip --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index f0bc850..8be62cf 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Everyday Git in twenty commands or so](#everyday-git-in-twenty-commands-or-so) * [Show helpful guides that come with Git](#show-helpful-guides-that-come-with-git) +* [Search change by content](#search-change-by-content) * [Overwrite pull](#overwrite-pull) * [List of all files till a commit](#list-of-all-files-till-a-commit) * [Git reset first commit](#git-reset-first-commit) @@ -179,6 +180,11 @@ git help everyday git help -g ``` +## Search change by content +```sh +git log -S'' +``` + ## Overwrite pull ```sh git fetch origin && git reset --hard origin/master diff --git a/tips.json b/tips.json index 16b56eb..0c5a3e2 100644 --- a/tips.json +++ b/tips.json @@ -4,6 +4,9 @@ }, { "title": "Show helpful guides that come with Git", "tip": "git help -g" +}, { + "title": "Search change by content", + "tip": "git log -S''" }, { "title": "Overwrite pull", "tip": "git fetch origin && git reset --hard origin/master"