git recovery code to a previous version

Step 1: Check the version history

git reflog 

Step two: find the need to restore the version

````

git reset --hard version number

```

On the blog address: http://lwenl.cn/source/20.html

Writing is not easy, do not spray, hoping to help to you

Guess you like

Origin www.cnblogs.com/lwenl/p/12530200.html