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.
假设以下场景:
文件a和b都被修改,并a在索引中暂存。如果您运行git stashthen git stash pop,则文件a不再暂存。
a
b
git stash
git stash pop
你如何使git stash索引恢复到以前的状态?
如果我理解正确,我认为您只需要:
git stash pop --index