Another thing you can look at is through your IDE. I accidentally checkout 2 files and was able to bring back the changes through the ‘local history’ of my IDE (Netbeans). What a blessing!
If you’re using Eclipse, do this by right clicking on the file and going to Team->Show Local History.