git restore a file to a specific version

1. First use git log to view the version number that needs to be restored

2. git checkout <version number> <file relative path>

3、git commit -m "xxx"

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325009590&siteId=291194637
Recommended