2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

`git ls-files -o` に `--directory` をつけて見やすく

Last updated at Posted at 2016-01-25

--directory
If a whole directory is classified as "other", show just its name (with a trailing slash) and not its whole contents.
$ git ls-files -o
.bundle/config
log/development.log
vendor/bundle/ruby/2.2.0/bin/byebug
vendor/bundle/ruby/2.2.0/bin/erubis
...
$ git ls-files -o --directory
.bundle/
log/development.log
tmp/
vendor/bundle/
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?