Git blame helps when investigating why code in a file is a certain way. git gui is even better in that it allows you to step backwards in time to see the context of the file when code was added.
However, git blame <file>
and git gui blame <file>
do not work after a file has been deleted. An error will appear as:
fatal: cannot stat path 'file': No such file or directory
How does one blame a deleted file?