LoginSignup
1
0

More than 3 years have passed since last update.

gitで変更ファイルだけaddしたいとき git add -u

Posted at

結論:git add -u を使おう

git add - u

想定状況

  • 既にpushしたけど微妙な修正内容がある
  • ディレクトリ構造が複雑で一個一個指定するのが面倒かつ全部addするのは重い

実行例

ファイル変更後はこういう状況
スクリーンショット 2020-04-08 20.12.32.png

ここで

git add - u

を使うと、
スクリーンショット 2020-04-08 20.12.48.png

と、変更した三つのファイルだけaddできているのがわかる。最後はcommitしてpushしてあげれば終了!

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