commit problem

i need a small problem

i have create files and add some lines in to that files i will push the code and in to the reposotrie and added some lines in to the files and push the code in to the reposotries now my proble with out clone the code in to the reposotries is there any possibility to the revert back in to the previous commits

how can i overcome to this proble

Take a look at git revert and git reset - there are a number of different approaches to returning to a previous state / commit

 - Git Revert Documentation

 - Git Reset Documentation