git undo deleted files and directory 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"