How to search through all commits in the repository?
Posted
by Josip
on Stack Overflow
See other posts from Stack Overflow
or by Josip
Published on 2009-04-14T07:49:49Z
Indexed on
2010/05/26
23:01 UTC
Read the original article
Hit count: 331
I have a git repository with few branches and dangling commits. I would like to search all such commits in repository for a specific string.
I know how to get a log of all commits in history, but these don't include branches or dangling blobs, just HEAD's history. I want to get them all, to find a specific commit that got misplaced.
I would also like to know how to do this in mercurial, as I'm considering the switch.
© Stack Overflow or respective owner