39
25

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で特定のディレクトリ以下のdiffを見るときは、relativeオプションを使う

Last updated at Posted at 2016-08-10

タイトル通り。「このディレクトリに差分があったら〜」みたいなことをするのにすごい良さげ。

git diff branchA branchB --name-only  --relative=subdir

便利。-- でファイルの差分見れるみたいなのを見つけてそこにディレクトリ名入れれるかなぁと思ったけど、できなかったので。

  • releative 差分が有るか見たいディレクトリの名前を指定する
  • name-only 差分があるファイルの名前だけ表示する。

試したのはgit version 2.7.4 です。

39
25
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
39
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?