LoginSignup
1
0

More than 3 years have passed since last update.

Git 痒いところに手がとどくコマンドまとめ

Last updated at Posted at 2019-08-15

修正状態のフィルターに応じた抽出

git diff --name-only --diff-filter=M
filter=の後の部分はフィルタリングしたい内容を入力

フィルタ 意味
M 修正
A 追加
C コピー
R リネーム
D 削除

git diff --name-only --diff-filter=M|xargs git add
上コマンドの場合、修正したフォルダだけをステージ場にaddできる。

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