How to get initial configurations

I have completely messed up the setup for module 2, so I want to restart from the beginning of module 2 with all the previous details.
how may I revert back to the configuration I had after completion of the first module…

Do a git reset --hard HEAD, to go the previously committed code. But before doing that do get some understanding on how git works. It will take just half an hour to know the commands and what they do.
Also do a git log to see all your commits.

You can type the following command
git reset --hard HEAD
This will put the HEAD pointer to the previous commit

@avichal_sri As there is no response from your side for a long time, hoping that your issue is resolved , i am closing this topic. For further queries you can create a new topic and continue there.