What is the purpose of `git log -S ‘pattern’` (the pickaxe option)?

Git Medium

Git — Medium

What is the purpose of `git log -S ‘pattern’` (the pickaxe option)?

Key points

  • The pickaxe option searches for string patterns in code changes, not commit messages.
  • It tracks additions and removals of code across the repository history.
  • This option is distinct from searching commit messages or staged changes.
  • The pickaxe is a powerful tool for code forensics.

Ready to go further?

Related questions