开发者

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

开发者 https://www.devze.com 2023-01-07 06:09 出处:网络
I\'m able to list git stashes by date with git stash list --date=local but how do I select a revisi开发者_运维技巧on without getting

I'm able to list git stashes by date with

git stash list --date=local

but how do I select a revisi开发者_运维技巧on without getting

fatal: Needed a single revision


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!)

0

精彩评论

暂无评论...
验证码 换一张
取 消