summaryrefslogtreecommitdiff
path: root/src/content/tils/2020/08/16
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/tils/2020/08/16')
-rw-r--r--src/content/tils/2020/08/16/git-search.adoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/tils/2020/08/16/git-search.adoc b/src/content/tils/2020/08/16/git-search.adoc
index 26e617d..4113f3f 100644
--- a/src/content/tils/2020/08/16/git-search.adoc
+++ b/src/content/tils/2020/08/16/git-search.adoc
@@ -11,7 +11,7 @@ Here's a useful trio to know about to help you search things in git:
Show a specific commit and it's diff:
-[source,shell]
+[source,sh]
----
git show
# shows the latest commit
@@ -25,7 +25,7 @@ git show v1.2
Search through the commit messages:
-[source,shell]
+[source,sh]
----
git log --grep='refactor'
----
@@ -36,7 +36,7 @@ git log --grep='refactor'
Search content in git history:
-[source,shell]
+[source,sh]
----
git grep 'TODO'
# search the repository for the "TODO" string