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)`.
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
179180git 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
184190git fetch origin && git reset --hard origin/master
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments