I created a file then staged it in my git repo using git add <file>
.
I also wanted to remove some files in the same commit so did a git rm -f 'files.*'
.
The wildcard I used in the remove line was a little too generic, and it removed my previously staged file.
Bearing in mind it was never committed, only staged, is there any way of retrieving the file I inadvertently removed?