undo git deleted files code example
Example 1: Git Restoring Deleted Files
$ git checkout <commit hash> -- <filename>
Example 2: remove git deleted files
git commit -m "Deleted files manually"
$ git checkout <commit hash> -- <filename>
git commit -m "Deleted files manually"