質問をたどると適切なコマンドが見つかります。コマンド名をクリックすると詳細ページへ移動します。
git merge / git merge --no-ff
git rebase
git cherry-pick
git reset
git restore
git commit --amend
reset 実践ガイド