text 使用存储将所有更改重置为分支

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 使用存储将所有更改重置为分支相关的知识,希望对你有一定的参考价值。

git stash save --keep-index --include-untracked 'delete'
-- 'delete' can be called anything, it's just a name that you will use later to find the right index of stash in stash list

git stash list
-- find index of stash you created earlier, in this case 'delete'

git stash drop stash@{0}

git reset HEAD

git status

以上是关于text 使用存储将所有更改重置为分支的主要内容,如果未能解决你的问题,请参考以下文章