在我对文件进行更改之后。我使用 git add FILE_NAME
。
然后,我想将其还原为未添加,但同时保留更改,该怎么做?
最佳答案
git reset -- FILE_NAME
会做的。
This means that
git reset <pathspec>
is the opposite ofgit add <pathspec>
关于GIT 在我的案例中添加还原(保留更改),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8388519/