Skip to content

Commit 77c865c

Browse files
authored
Merge pull request #143 from eliranmal/master
add change by content search tip
2 parents c98730c + 81f9099 commit 77c865c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
1313
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
1414
* [Everyday Git in twenty commands or so](#everyday-git-in-twenty-commands-or-so)
1515
* [Show helpful guides that come with Git](#show-helpful-guides-that-come-with-git)
16+
* [Search change by content](#search-change-by-content)
1617
* [Overwrite pull](#overwrite-pull)
1718
* [List of all files till a commit](#list-of-all-files-till-a-commit)
1819
* [Git reset first commit](#git-reset-first-commit)
@@ -179,6 +180,11 @@ git help everyday
179180
git help -g
180181
```
181182

183+
## Search change by content
184+
```sh
185+
git log -S'<a term in the source>'
186+
```
187+
182188
## Overwrite pull
183189
```sh
184190
git fetch origin && git reset --hard origin/master

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
}, {
55
"title": "Show helpful guides that come with Git",
66
"tip": "git help -g"
7+
}, {
8+
"title": "Search change by content",
9+
"tip": "git log -S'<a term in the source>'"
710
}, {
811
"title": "Overwrite pull",
912
"tip": "git fetch origin && git reset --hard origin/master"

0 commit comments

Comments
 (0)