Git
Published at 2026/04/11
Git
コマンド
直近のcommitのメッセージを修正したい
git commit --amend -m "修正されたコメント"
変更を直近のcommitに含めたい
git add -A
git commit --amend --no-edit
git add
git add -A # 作業ツリー全体のすべてのファイルを追加
git add . # カレントディレクトリ以下すべてのファイルを追加
git add <pathspec> # マッチするすべてのファイルを追加
Git - git-add Documentation
Git - gitglossary Documentation
branch
git switch -c <new-branch> # ブランチを作って新しいブランチに切り替える
Git - git-switch Documentation