2
0

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 3 years have passed since last update.

特定のブランチで修正されたファイル一覧を出す

Last updated at Posted at 2021-01-15

結論

これでOK。

git diff --name-only <分岐先ブランチ名> `git merge-base <分岐先ブランチ名> <分岐元ブランチ名>`

CIツールなどを使っていて、unknown revision or path not in the working tree. で怒られる場合は ブランチ名oringin/ブランチ名に修正すればいける(場合がある)

削除したファイルは表示したくない場合(2021/1/15 14:15追記)

git diff --name-only --diff-filter=ACMR `git merge-base <分岐先ブランチ名> <分岐元ブランチ名>` <分岐先ブランチ名>

参考

2
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?