File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
13
13
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
14
14
* [ Everyday Git in twenty commands or so] ( #everyday-git-in-twenty-commands-or-so )
15
15
* [ Show helpful guides that come with Git] ( #show-helpful-guides-that-come-with-git )
16
+ * [ Search change by content] ( #search-change-by-content )
16
17
* [ Overwrite pull] ( #overwrite-pull )
17
18
* [ List of all files till a commit] ( #list-of-all-files-till-a-commit )
18
19
* [ Git reset first commit] ( #git-reset-first-commit )
@@ -179,6 +180,11 @@ git help everyday
179
180
git help -g
180
181
```
181
182
183
+ ## Search change by content
184
+ ``` sh
185
+ git log -S' <a term in the source>'
186
+ ```
187
+
182
188
## Overwrite pull
183
189
``` sh
184
190
git fetch origin && git reset --hard origin/master
Original file line number Diff line number Diff line change 4
4
}, {
5
5
"title" : " Show helpful guides that come with Git" ,
6
6
"tip" : " git help -g"
7
+ }, {
8
+ "title" : " Search change by content" ,
9
+ "tip" : " git log -S'<a term in the source>'"
7
10
}, {
8
11
"title" : " Overwrite pull" ,
9
12
"tip" : " git fetch origin && git reset --hard origin/master"
You can’t perform that action at this time.
0 commit comments