Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have 'git log' show filenames like 'svn log -v'

Tags:

git

logging

svn

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

jes5199$ svn log -v ------------------------------------------------------------------------ r1 |   jes5199 | 2007-01-03 14:39:41 -0800 (Wed, 03 Jan 2007) | 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?

like image 300
jes5199 Avatar asked Aug 04 '09 21:08

jes5199


People also ask

How do I view files in git log?

To find out which files changed in a given commit, use the git log --raw command. It's the fastest and simplest way to get insight into which files a commit affects.

What is the equivalent of SVN update in git?

An equivalent of "svn update" would be "git pull --rebase".

What information does a git log show?

The git log command shows a list of all the commits made to a repository. You can see the hash of each Git commit, the message associated with each commit, and more metadata. This command is useful for displaying the history of a repository.

What is the difference between git log and git log?

log is that the log is a public accounting of the repository's commit history while the reflog is a private, workspace-specific accounting of the repo's local commits. The Git log is part of the Git repository and is replicated after a push, fetch or pull. In contrast, the Git reflog is not part of the replicated repo.


1 Answers

For full path names of changed files:

git log --name-only 

For full path names and status of changed files:

git log --name-status 

For abbreviated pathnames and a diffstat of changed files:

git log --stat 

There are a lot more options. Check out the documentation.

like image 121
CB Bailey Avatar answered Oct 01 '22 14:10

CB Bailey