Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to choose a git stash when they're described by the date stashed?

Tags:

git

git-stash

I'm able to list git stashes by date with

git stash list --date=local

but how do I select a revision without getting

fatal: Needed a single revision
like image 613
Andrew Grimm Avatar asked Jul 14 '10 03:07

Andrew Grimm


1 Answers

You need to put quotation marks around the date:

git stash show -p stash@{Friday Smarch 13 13:13:13 2013}

won't work, while

git stash show -p stash@{"Friday Smarch 13 13:13:13 2013"}

works. (With the date given, it actually gave me the most recent stash, rather than saying it was invalid!)

like image 77
Andrew Grimm Avatar answered Oct 20 '22 11:10

Andrew Grimm