Take backup of your code in to temp folder. Following command will reset same as server.
git reset --hard HEADgit clean -fgit pull
If you want to keep your changes , and remove recent commits
git reset --soft HEAD^git pull
Take backup of your code in to temp folder. Following command will reset same as server.
git reset --hard HEADgit clean -fgit pull
If you want to keep your changes , and remove recent commits
git reset --soft HEAD^git pull