Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I view a single file's history in GitK?

Tags:

git

gitk

I have a git repository with a large number of files in it. At some point a bug was introduced into my program, and I have a good idea which file is causing the issue. Now I just need to track down which commit introduced the error.

How can I view the revision history for single file using GitK?

like image 936
Stevoisiak Avatar asked Aug 28 '17 20:08

Stevoisiak


1 Answers

To get the file history

gitk <filename>

To see the blame history in a gui, which may help you track the commit use

git gui blame <filename> 
like image 85
ilias Avatar answered Sep 29 '22 20:09

ilias