Grep your git commit log

This is more for my reference in the future. But if you want to search you commit history for a specific a term that changed in one of your commits, then you can issue the following command:
git grep your-regex-here $(git rev-list –all) For example I did git grep “\’load” $(git rev-list –all) to find the commit that had me removing ‘load’.
Neat.


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<p>This is more for my reference in the future. But if you want to search you commit history for a specific a term that changed in one of your commits, then you can issue the following command:</p> <div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-fallback" data-lang="fallback">git grep your-regex-here $(git rev-list --all) </code></pre></div><p>For example I did <code>git grep "\'load" $(git rev-list --all)</code> to find the <a href="https://paul.kinlan.me/performance-and-resiliencestress-testing-third-parties-by-css-wizardry/">commit that had me removing 'load'</a>.</p> <p>Neat.</p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate Updates
APA

Paul Kinlan | Sciencx (2018-10-23T09:59:01+00:00) Grep your git commit log. Retrieved from https://www.scien.cx/2018/10/23/grep-your-git-commit-log/

MLA
" » Grep your git commit log." Paul Kinlan | Sciencx - Tuesday October 23, 2018, https://www.scien.cx/2018/10/23/grep-your-git-commit-log/
HARVARD
Paul Kinlan | Sciencx Tuesday October 23, 2018 » Grep your git commit log., viewed ,<https://www.scien.cx/2018/10/23/grep-your-git-commit-log/>
VANCOUVER
Paul Kinlan | Sciencx - » Grep your git commit log. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2018/10/23/grep-your-git-commit-log/
CHICAGO
" » Grep your git commit log." Paul Kinlan | Sciencx - Accessed . https://www.scien.cx/2018/10/23/grep-your-git-commit-log/
IEEE
" » Grep your git commit log." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2018/10/23/grep-your-git-commit-log/. [Accessed: ]
rf:citation
» Grep your git commit log | Paul Kinlan | Sciencx | https://www.scien.cx/2018/10/23/grep-your-git-commit-log/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.