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.
我在分支上工作XYZ。我想知道foo.c这个分支与stash{0}on相比如何master。就像是
XYZ
foo.c
stash{0}
master
git diff master@stash@{0} foo.c
这是行不通的。现在我希望这些 stashfoo.c替换我的本地文件。就像是
git checkout master@stash@{0} foo.c
编辑:我没有意识到存储不属于分支,但存储本身标识它是哪个分支的存储。问题解决了。