mirror of
https://github.com/namibia/tips.git
synced 2025-04-02 03:51:52 +00:00
Merge pull request #96 from munendrasn/master
Add tip to search commit log for given text
This commit is contained in:
commit
4f2b8dfe99
@ -119,6 +119,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||||||
* [Show all local branches ordered by recent commits](#show-all-local-branches-ordered-by-recent-commits)
|
* [Show all local branches ordered by recent commits](#show-all-local-branches-ordered-by-recent-commits)
|
||||||
* [Find lines matching the pattern (regex or string) in tracked files](#find-lines-matching-the-pattern-regex-or-string-in-tracked-files)
|
* [Find lines matching the pattern (regex or string) in tracked files](#find-lines-matching-the-pattern-regex-or-string-in-tracked-files)
|
||||||
* [Clone a shallow copy of a repository](#clone-a-shallow-copy-of-a-repository)
|
* [Clone a shallow copy of a repository](#clone-a-shallow-copy-of-a-repository)
|
||||||
|
* [Search Commit log across all branches for given text](#search-commit-log-across-all-branches-for-given-text)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -828,5 +829,10 @@ git grep --heading --line-number 'foo bar'
|
|||||||
git clone https://github.com/user/repo.git --depth 1
|
git clone https://github.com/user/repo.git --depth 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Search Commit log across all branches for given text
|
||||||
|
```sh
|
||||||
|
git log --all --grep='<given-text>'
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -361,4 +361,7 @@
|
|||||||
}, {
|
}, {
|
||||||
"title": "Clone a shallow copy of a repository",
|
"title": "Clone a shallow copy of a repository",
|
||||||
"tip": "git clone https://github.com/user/repo.git --depth 1"
|
"tip": "git clone https://github.com/user/repo.git --depth 1"
|
||||||
|
}, {
|
||||||
|
"title": "Search Commit log across all branches for given text",
|
||||||
|
"tip": "git log --all --grep='<given-text>'"
|
||||||
}]
|
}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user