・git revert HEAD で打ち消しコミット
・git revert -n HEAD で差分復帰
・ステージングされた状態のファイルを全部下げる
・git revert --quit でrevert状態解除
・git switch で正しいブランチに変更
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme