Author:
erics, July 9th, 2020
Show commits and messages that match
|
git log --all --grep='SEARCH_STRING_HERE' |
Include code diffs
|
git log --all --grep='SEARCH_STRING_HERE' -p |
Include file names
|
git log --all --grep='SEARCH_STRING_HERE' --name-only |
Categories: How-To's, Technology Tags: commit, contains, Find, git, git log, howto, Log, Log message, Message, tips
| No comments
Author:
erics, February 7th, 2020
First, get on the branch that you know already has the commits you are looking for:
|
git checkout theBranch-1234 |
Copy-and-paste the commit(s) you want:
~or~
Optionally, display the code changes for a visual confirmation:
|
git show {one or more commit ID's} |
Finally, extract the list of branches that contain the desired commits:
|
git branch --contains CommitID-A git branch --contains CommitID-B |
Example:
|
git log git branch --contains 097e1859f248a7aa5e148a2a946be3e360030095 git branch --contains 24339549f9f1920a33f721d3faa2538c8ba5d249 |
Categories: How-To's, Technology Tags: commit, git, git log, git show, howto, Show, tips
| No comments
Author:
erics, June 3rd, 2019
To display the filenames included in each commit, just add the –name-only argument to git log:
Categories: How-To's, Technology Tags: Display, File, file names, git, git log, howto, Log, names, Show, tips
| No comments
Author:
erics, November 14th, 2012
git log -1 git log -1 –oneline git log -1 –pretty=%B Add the -p option to include the actual code diff!
Categories: How-To's, Technology Tags: git, git log, howto, Latest, tips
| No comments