LoginSignup
1
1

More than 3 years have passed since last update.

git add と git commit を連打する人は git commit -a で幸せになれます

Posted at
$ git add index.html
$ git commit index.html

とコマンドするよりも、以下コマンドであれば一コマンドで済みます。

$ git commit index.html -a

Git では、git commit コマンドに -a オプションを指定すると追跡対象となっているファイルを自動的にステージしてからコミットを行います。
git addgit commit を連続でコマンドしている方はシンプルなショートカットを使っていきましょう。

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