LoginSignup
0
0

More than 1 year has passed since last update.

リモートブランチとローカルブランチのファイル名のみの修正差分表示

Posted at

リモートブランチとローカルブランチのファイル名のみの差分表示

みなさんご存知の通り、リモートブランチとローカルブランチの差分を表示するときは、

git diff

を使うと思います。
ですが、 addする際には、修正ファイルのみが必要になります。
こんな風に。

git add index.html
git add test.php

となると。ファイル名のみ欲しいですよね。。。
そんな時は、以下を実行すると

git diff --name-only

これでファイル名のみ取得できるので、便利ですよ( ^ω^ )

注意点

これ新規ファイルは見れないのですよ。
コマンドだけで全て差分表示できる方法を知っているつよつよエンジニアさん教えて。。

現状の解決策

VScodeのソースコードコントロールを使えばいいんですよ。
便利ですよ。VScode!!

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