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

git  reflog  通过这个看commit id

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

 

转载于:https://www.cnblogs.com/zipon/p/6880051.html

你可能感兴趣的:(git提交之后没有push,代码被覆盖之后恢复)