LoginSignup
9
6

More than 5 years have passed since last update.

modified なファイルだけ add したいことあるよねー

Posted at

コミットまでしたいときは,

git commit -a -m "some message"

でよいけど,とりあえず modified なファイルだけ add して,untracked なやつとかは一緒のコミットにするか別にするか考えよう,という場合は(極めて安直だけど)

git status | sed -e "s/#.*modified://g" | xargs git add

でおk.
毎回書くのは面倒なので,スクリプトにでもしておくと便利かも.

# 何かスマートな方法はないものか…

9
6
3

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
9
6