0 votes
1 view
in DevOps and Agile by (30k points)

SVN's log has a "-v" mode that outputs filenames of files changed in each commit, like so:

chandr1$ svn log -v


r1 |   chandr1 | 2019-07-10 14:39:41 -0800 (Wed, 10 Jul 2019) | 1 line

Changed paths:



   A /ChangeLog



   A /MacOSX

Is there a quick way to get a list of changed files in each commit in git?

1 Answer

0 votes
by (51.2k points)

To get git log file names you can use the following commands

For full path names of the changed file

git log --name-only

Refer: https://git-scm.com/docs/git-log#Documentation/git-log.txt---name-only

For full path names and status of changed files

git log --name-status 

Refer: https://git-scm.com/docs/git-log#Documentation/git-log.txt---name-status

For abbreviated path names and a diffstat of changed files:

git log --stat

Refer: https://git-scm.com/docs/git-log#_name

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !