restore

Restore the deleted files with GIT

Today, it was a shock, that I have deleted few files without my knowledge. Fortunately, before deleting I had committed the files and so no much of tension. You can use the following commands to restore it.

View the list of deleted files:

1
git ls-files -d

This will list the deleted file and lets restore it now.

Syndicate content