git提交之后没有push,代码被覆盖之后恢复

git  reflog  通过这个看commit id

git reset [commit id] --hard   有时候要删除一个index.lock文件。

 

posted @ 2017-05-19 19:53  zipon  阅读(3396)  评论(0编辑  收藏  举报