mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add List Filenames Without The Diffs as a git til.
This commit is contained in:
@@ -29,6 +29,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Delete All Untracked Files](git/delete-all-untracked-files.md)
|
- [Delete All Untracked Files](git/delete-all-untracked-files.md)
|
||||||
- [Dry Runs in Git](git/dry-runs-in-git.md)
|
- [Dry Runs in Git](git/dry-runs-in-git.md)
|
||||||
- [Intent To Add](git/intent-to-add.md)
|
- [Intent To Add](git/intent-to-add.md)
|
||||||
|
- [List Filenames Without The Diffs](git/list-filenames-without-the-diffs.md)
|
||||||
- [List Untracked Files](git/list-untracked-files.md)
|
- [List Untracked Files](git/list-untracked-files.md)
|
||||||
- [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md)
|
- [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md)
|
||||||
- [Staging Changes Within Vim](git/staging-changes-within-vim.md)
|
- [Staging Changes Within Vim](git/staging-changes-within-vim.md)
|
||||||
|
|||||||
19
git/list-filenames-without-the-diffs.md
Normal file
19
git/list-filenames-without-the-diffs.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# 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 <jbranchaud@gmail.com>
|
||||||
|
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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user