How to revert git changes

If file is modified and you want to revert into back state, the state you pulled/cloned from git
just run following command from terminal

git checkout --filename.php

But if you have many files and want all to be inverted
then just do following:

cd yourgitrepo
git checkout ./

About Jaffar Hussain

Jaffar Hussain is an Enthusiastic Software Engineer having vast experience in Zend, SugarCRM, Laravel php frameworks and good command on databases Mysql, MongoDB, SqlServer 2008.