我该如何放弃Git中未分离的更改? [英] How do I discard unstaged changes in Git?
本文介绍了我该如何放弃Git中未分离的更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在我的工作副本中放弃不在索引中的更改? / p>
git储存储存--keep-index
包含 - include-untracked
如果您想彻底了解它。
之后,如果你愿意的话,你可以用 git stash drop
命令删除那个存储。
How do I discard changes in my working copy that are not in the index?
解决方案
Another quicker way is:
git stash save --keep-index
Include --include-untracked
if you'd want to be thorough about it.
After that, you can drop that stash with a git stash drop
command if you like.
这篇关于我该如何放弃Git中未分离的更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文