Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 563 Bytes

list-filenames-without-the-diffs.md

File metadata and controls

19 lines (15 loc) · 563 Bytes

List Filenames Without The Diffs

The git show command will list all changes for a given reference including the diffs. With diffs included, this can get rather verbose at times. If you just want to see the list of files involved (excluding the diffs), you can use the --name-only flag. For instance,

$ git show HEAD --name-only
commit c563bafb511bb984c4466763db7e8937e7c3a509
Author: jbranchaud <[email protected]>
Date:   Sat May 16 20:56:07 2015 -0500

    This is my sweet commit message

app/models/user.rb
README.md
spec/factories/user.rb