gitのcheckoutとswitchの対応
from git switch
GPT-4.icon
table:対応
git checkout git switch 補足
git checkout <branch> git switch <branch>
git checkout -b <new-branch> git switch -c <new-branch>
git checkout -B <new-branch> git switch -C <new-branch>
N/A git switch --orphan <new-branch> orphan branchとして作成 & 切り替え
git checkout <commit-hash> git switch --detach <commit-hash> 一時的にコミットへ切り替え
git checkout -m <branch> git switch -m <branch> 3-way マージを使用してブランチを切り替え
N/A git switch -m <branch> ローカル変更を維持してブランチを切り替え
N/A git switch --progress / --no-progress プログレス表示の有効化/無効化
N/A git switch --ignore-other-worktrees 切り替え先のブランチが他のワークツリーで使用中の場合に強制的に切り替え
いつ使うねん、という感じのやつも多いなmrsekut.icon