How to checkout a single file from the stash

git

Last week I needed a single file that I had stashed before. As git is a very powerful DVCS it was actually pretty easy.

This will checkout your stashed file from stash 0:

git checkout stash@{0} -- filename

Comments

comments powered by Disqus