What is the purpose of `git log –follow` when tracking file history?

Git Hard

Git — Hard

What is the purpose of `git log –follow` when tracking file history?

Key points

  • `git log --follow` is essential for following file history across renames
  • Without `--follow`, Git stops at the point of rename
  • With `--follow`, Git detects renames using similarity scoring

Ready to go further?

Related questions