Ben Aston
Ben Aston

Reputation: 55729

Git log, showing file changes

How do I perform a git log for a file showing the changes to the file in a diff like manner?

e.g

git log Foo/Bar.config

Upvotes: 0

Views: 696

Answers (1)

VonC
VonC

Reputation: 1323953

You can try:

git log -p -- afile

From the git log man page:

-p
-u
--patch

Generate patch (see section on generating patches).

Upvotes: 5

Related Questions