How do I show only filenames for all modified files in my repository? git status
adds additional output, e.g.,
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: my-file (modified content)
How do I get:
$ git status --name-only # --name-only is not a valid option; what do I use instead?
my-file