0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Git add インタラクティブモード

Last updated at Posted at 2023-04-10

インタラクティブモードとは

git add -i
git add --interactive

コミットの内容に細工をして特定のコミットだけとかファイルの中の一部だけとかを含めるようにすること

多くの選択肢から複数をaddしたいときに使った

git add pathコピペ でやってたけど、5個も6個もってなると手間
→だからインタラクティブモードを使うと楽

修正と追加の違い

  • 修正

Changes not staged for commit の欄に出てくるもの

→ 2:update でできる

  • 追加

untracked files の欄に出てくるもの

→ 4:add untrackedでできる

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?