recent commits and go back to previous stateyou can reset the project to previous commit working from the master branchenter the followingu git_practicegit status on branch master nothing to commitworking directory clean git_practicegit log --pretty=oneline cb cff bd ab ed extended greeting be dbc ff be fd started project git_practicegit reset --hard be head is now at be started project git_practicegit status on branch master nothing to commitworking directory clean git_practicegit log --pretty=oneline be dbc ff be fd started project git_practicewe first check the status to make sure we're on the master branch when we look at the logwe see both commits we then issue the git reset --hard command with the first six characters of the reference id of the commit we want to revert to permanently we check the status again and see we're on the master branch with nothing to commit when we look at the log againwe see that we're at the commit we wanted to start over from deleting the repository sometimes you'll mess up your repository' history and won' know how to recover it if this happensfirst consider asking for help using the methods discussed in appendix if you can' fix it and you're working on solo projectyou can continue working with the files but get rid of the project' history by deleting the git directory this won' affect the current state of any of the filesbut it will delete all commitsso you won' be able to check out any other states of the project to do thiseither open file browser and delete the git repository or do it from the command line afterwardsyou'll need to start over with fresh repository to start tracking your changes again here' what this entire process looks like in terminal sessionu git_practicegit status on branch master nothing to commitworking directory clean git_practicerm -rf git git_practicegit status fatalnot git repository (or any of the parent directories)git git_practicegit init initialized empty git repository in git_practicegitusing git for version control