git init
git restore .
git restore path/to/file/to/revert
git log
Use ↑↓
to navigate, and q
to exit.
git checkout <commit-code>
git checkout -
git checkout -b <branch-name>
git init
git restore .
git restore path/to/file/to/revert
git log
Use ↑↓
to navigate, and q
to exit.
git checkout <commit-code>
git checkout -
git checkout -b <branch-name>