I've made changes in my working directory and then run git stash
. In my .dir/refs
directory I've got a new reference called stash
, which is a pointer to the object with hash 2d05be16dcd0828c84d63f1e07ee78a2a28b3deb
. I've checked the type of the object and it's commit
:
$ git cat-file -t 2d05be16dcd0828c84d63f1e07ee78a2a28b3deb
commit
So it seems that stashing indeed creates a commit. So when I unstash it, is it equivalent to cherry-picking it?