DEV Community

Kashyap
Kashyap

Posted on • Originally published at kgrz.io

Listing out the history of a particular file in Git

There are multiple ways to follow a file's history in
Git. You can use a double-dash and pass file names that you want to list
out the log for. But there's a limitation to what it can do. A better
option would be to use the --follow flag for git log command. I wrote about this in a little more detail here:

https://kgrz.io/use-git-log-follow-for-file-history.html

Top comments (0)