Recovering a file in git

While working on Moose, I accidentally deleted the wrong file in git, though code in that file was very small & easy, so I rewrote it and added it to git. But if it would have been a bigger file, then it might not be easy for me to rewrite it, so recovering that file…