Pep*_*lac 7 git android repository
使用repo命令时如何进行回滚?
我在一些文件中做了一些更改,现在我想回滚到使用repo sync命令时下载的源代码.
我没有做出改变.
正确的命令是:
如果您想恢复对工作副本所做的更改,请执行以下操作:
repo forall -c "git checkout ."
如果您想恢复对索引所做的更改(即您已添加的更改),请执行以下操作:
repo forall -c "git reset"
如果您想恢复已提交的更改,请执行以下操作:
repo forall -c "git revert ..."
| 归档时间: |
|
| 查看次数: |
4432 次 |
| 最近记录: |