Reference: Http://stackoverflow.com/questions/1786027/how-to-view-file-history-in-git
Use git log to view the commit history. Each commit have an associated revision specifier a hash key (e.g. 14b8d0982044b0c49f7a855e396206ee65c0e787 and b41 0ad4619d296f9d37f0db3d0ff5b9066838b39). To view the difference between and different commits, use Git diff with the first Few characters of the revision specifiers of both commits, like so:
# diff between commits 14b8 ... and b410 ...
Git diff 14b8. b410
# only include Diff of specified files
Git diff 14b8. b410 path/to/file/a path/to/file/b
If you want to get a overview over all the differences this happened from commit to commit, use git log or git whatchange D with the patch option:
# include patch displays in the commit history
Git log-p
Git whatchanged-p
# only get the history of those commits that touch specified paths
git log path/a path/b
git whatchanged path/c path/d
GITK Path/to/file
git diff path/to/file
git log path/to/file
git log
How to view file history in Git?