How to undelete a file previously deleted in git’s history?
git checkout <commit> <filename>
git checkout <commit> <filename>
Going by the book: RFC 2616-9.7: The DELETE method requests that the origin server delete the resource identified by the Request-URI. This method MAY be overridden by human intervention (or other means) on the origin server. The client cannot be guaranteed that the operation has been carried out, even if the status code returned from … Read more
Do yourself a favour and do not do git checkout <hash> like the other answer suggests and go into more problems. IF you have deleted file from your working directory and not committed the changes yet, do: git checkout -f CAUTION: commit uncommitted files before executing this command, otherwise you’re going to lose them all … Read more
Just copy the deleted folder back from an earlier revision. In the Repository Browser, click the button labeled HEAD (at the top-right corner) to show to a revision there your folder still exists, then right-click that folder and select “Copy to…” and enter the path there you want the folder to be re-created (probably the … Read more