Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以按日期列出 git stashes
git stash list --date=local
但是我如何在不获取的情况下选择修订版
fatal: Needed a single revision
您需要在日期前后加上引号:
git stash show -p stash@{Friday Smarch 13 13:13:13 2013}
不会工作,而
git stash show -p stash@{"Friday Smarch 13 13:13:13 2013"}
作品。(给出的日期,它实际上给了我最近的存储,而不是说它是无效的!)