Git log - View the change history of a file using Git versioning

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

How can I view the change history of an individual file in Git, complete with what has changed?

I have got as far as:

git log -- [filename]

which shows me the commit history of the file, but how do I get at the content of each of the changes?

I m trying to make the transition from MS SourceSafe and that used to be a simple right-click → show history.

Answers

For this I d use:

gitk [filename]

or to follow filename past renames

gitk --follow [filename]

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/278192/view-the-change-history-of-a-file-using-git-versioning

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils