diff options
author | EuAndreh <eu@euandre.org> | 2025-04-16 11:20:43 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-16 11:20:43 -0300 |
commit | d36c2e459a74ec67e523539eb98b78b95b01432a (patch) | |
tree | a7099fbfbdab6a21f59b6efe095bffb40ceae646 /src/content/tils/2020/08/16/git-search.adoc | |
parent | src/content/style.css: Show header on hover only (diff) | |
download | euandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.gz euandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.xz |
src/content/: Normalize [source,$lang] code blocks
Diffstat (limited to 'src/content/tils/2020/08/16/git-search.adoc')
-rw-r--r-- | src/content/tils/2020/08/16/git-search.adoc | 6 |
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 |