Need help with git, my project partial test script is lost

I have all git history how do I full the specific git commit.
I have commented most of the project and it is lost but I have committed the code in local git and I have a history of all my commit, how do I pull the specific git commit