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"

1 comment:

  1. "This post on search in Git is very well-written and informative. It's clear that the author has a deep understanding of the subject and is able to explain it in a way that is easy to understand for beginners. I particularly appreciate the tips on how to use the different search operators and how to find specific files and commits. Thank you for sharing this valuable information."
    Mutual Protection Orders in New Jersey
    Orden Protección Nueva Jersey
    Registro Central Violencia Doméstica Nueva Jersey

    ReplyDelete