[Git] After pulling the latest master code, what should I do if I want to roll back the previous version?

After pulling the latest master code, what should I do if I want to roll back the previous version?

Method introduction

Use git resetto roll back project version

You can roll back to any submitted version. It has add / commitbut pushthe document also applies

step one:

First use git log to view the hash value of the specific commitInsert picture description here

Step two:

reset to the specified version

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43352901/article/details/108705759