---
title: "Discussion on \"Find all commits related to a specific file path\" | Hashnode"
description: "Discussion on \"Find all commits related to a specific file path\". git log --follow --name-only -p <file>"
url: "https://hashnode.com/posts/find-all-commits-related-to-a-specific-file-path/629e5c474d2584547c17dbf0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Find all commits related to a specific file path](https://blog.jeremyfiel.com/find-all-commits-related-to-a-specific-file-path?utm_source=hashnode&utm_medium=feed)

git log --follow --name-only -p <file>

Jun 6, 2022 · 2 min read · blog.jeremyfiel.com  
Read the article

-   [#git-log](https://hashnode.com/tag/git-log)

## Written by

[Jeremy Fiel](https://hashnode.com/@jeremyfiel)

@jeremyfiel

  
[View profile](https://hashnode.com/@jeremyfiel)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
