blob: ded01f209fc9a96c96ab838911385d721d590a5e (
plain) (
tree)
|
|
#
msgid ""
msgstr ""
msgid ""
"title: Search in git\n"
"date: 2020-08-16\n"
"layout: post\n"
"lang: en\n"
"ref: search-in-git"
msgstr ""
msgid "Here's a useful trio to know about to help you search things in git:"
msgstr ""
msgid "`git show <commit>`"
msgstr ""
msgid "`git log --grep='<regexp>'`"
msgstr ""
msgid "`git grep '<regexp>' [commit]`"
msgstr ""
msgid "1. `git show <commit>`"
msgstr ""
msgid "Show a specific commit and it's diff:"
msgstr ""
msgid "2. `git log --grep='<regexp>'`"
msgstr ""
msgid "Search through the commit messages:"
msgstr ""
msgid "3. `git grep '<regexp>' [commit]`"
msgstr ""
msgid "Search content in git history:"
msgstr ""
msgid ""
"And if you find an occurrence of the regexp in a specific commit and you "
"want to browse the repository in that point in time, you can [use git "
"checkout for that][0]."
msgstr ""
msgid ""
"[0]: {% link _tils/2020-08-14-browse-a-git-repository-at-a-specific-"
"commit.md %}"
msgstr ""
|