当前位置:网站首页>Git remote library rollback specified version

Git remote library rollback specified version

2020-11-06 21:40:00 Architects who can drive

The operation process :

First look at the remote repository version , As shown in the figure below , Last submitted as 2018-03-19 22:16:25

First step : Use git log Command to view historical submissions , Select the version number to be rolled back ,commit The next string of characters , Here we choose to go back to commit 9d85ad9a……

 

The second step :git reset --hard 9d85ad9a Back to local version , And use git log See if the fallback is successful

The third step :git push -f Force fallback remote warehouse to current version

Check the remote warehouse version after operation , Find out 2018-03-19 22:16:25 The submission was missing , Remote warehouse fallback succeeded

Correlation extension :

版权声明
本文为[Architects who can drive]所创,转载请带上原文链接,感谢