gpt4 book ai didi

git - 防止 Git Stash 重置暂存文件

转载 作者:太空狗 更新时间:2023-10-29 13:34:30 25 4
gpt4 key购买 nike

假设以下场景:

文件ab都被修改了,a在索引中暂存。如果您运行 git stash,然后运行 ​​git stash pop,文件 a 将不再暂存。

如何让 git stash 将索引返回到之前的状态?

最佳答案

如果我没理解错的话,我想你只需要:

git stash pop --index

关于git - 防止 Git Stash 重置暂存文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4892870/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com