2012-09-29

Search in Git

Hi, I will show you how to:
  1. search in git commits (the actual code committed), and
  2. search in commit messages.

Search in committed code

git log -S "whatever you are looking for"

Search in commit messages

git log --grep="whatever you are looking for"

No comments:

Post a Comment