We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 202501e commit 25bf81fCopy full SHA for 25bf81f
1 file changed
manuscript/appendix-git-commands-reference/index.md
@@ -57,8 +57,9 @@ git add <ファイル名>
57
# すべての変更ファイルを追加
58
git add .
59
60
-# すべての変更(削除含む)を追加
61
-git add -A
+# 追跡中ファイルの変更(削除含む)のみを追加(新規/リネーム後のファイルは含まれない)
+git add -u
62
+# 新規/リネーム後のファイルは別途 git add <ファイル名> などで追加する
63
64
# インタラクティブに追加
65
git add -i
@@ -492,8 +493,8 @@ git fetch && git merge origin/main
492
493
# 作業開始前の準備
494
git pull && git status
495
-# 作業完了後の一連の流れ
496
-git add -A && git commit -m "機能実装完了" && git push
+# 作業完了後の一連の流れ(新規/リネームファイルは明示的に追加)
497
+git status && git add -u && git add <新規/リネームファイル...> && git commit -m "機能実装完了" && git push
498
499
# ブランチ切り替え前の安全確認
500
git status && git stash && git switch main
0 commit comments