Useful GIT Commands
To show deleted files:
“git ls-files -d”
To restore the deleted files use:
“git ls-files -d | xargs git checkout”
View your log:
“git log”
Reset to a previous head
"git reset --hard HEAD~1" (TheHEAD~1means the commit before head.)"git reset --hard <sha1-commit-id>