git initgit restore .
#or
git restore path/to/file/to/revertgit logUse ↑↓ to navigate, and q to exit.
git checkout <commit-code> git checkout -git checkout -b <branch-name>git branch -D <branch-name>git push <remote> --delete <branch-name>Ref: https://graphite.dev/guides/git-delete-local-branch-been-merged
git branch --merged | grep -v "^\*\\|main|staging|dev" | xargs -n 1 git branch -d