If you want to get the deleted files back, you can do:
git checkout .
What git fetch
does:
git-fetch - Download objects and refs from another repository
Basically it downloads VCS updates from remotes. When you delete files from your work tree, they are not deleted from the repository. So for git fetch
there is nothing to download, and it will do nothing when you run it.
What git pull
does:
git-pull - Fetch from and merge with another repository or a local branch
Basically it does git fetch
and a git merge
.