【发布时间】:2012-10-04 00:17:44
【问题描述】:
我在工作阶段编辑了一些文件(没有用git add -A添加它们。没有承诺)。
现在我想将更改恢复到本地分支中的最后一次提交。
要做什么?
我已经搜索了一下,发现:
git rebase -i HEAD
然后我得到:
Cannot rebase: You have unstaged changes.
Please commit or stash them.
那么正确的方法是什么?
【问题讨论】:
标签: git