See how many versions have been committed
git logs#详细
git log --pretty=oneline#只看到commit id和描述
Go back to the previous version and move the head pointer back one place
git reset --hard [HEAD^|commit_id]
See the commit_id in the command history for which version to go back to in the future
git reflog