git restore, revert, reset
git restore : Revert a single file
git restore filenamegit restore --source commit_id filenamegit restore --staged filenamegit revert : Revert a commit
git revert commit_id
git reset : If you want to revert everything

Last updated