View the change history of a file using Git versioning talks about other ways of viewing history of a file in Git.
Can it be done in Emacs Magit?
Open your magit-status
buffer, by typing M-x magit-status
(I used to have this bound to C-. C-g
because it is used all the time. These days, I use Spacemacs so it's
)
l
to get log viewing option--
to set the "Limit to files" option (used to be =f
)l
to view the log of the current branchIf you're using Spacemacs, you can get the history of the currently visited file using