Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k 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 /AUTHORS

   A /COPYING

   A /ChangeLog

   A /EVOLUTION

   A /INSTALL

   A /MacOSX

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

1 Answer

0 votes
by (50.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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...