class=”markdown_views prism-atom-one-dark”>
git fallback version
First open the history in the obtained remote project
View historical versions
You need to pay attention at this time – be sure to save two version numbers
Copy the current version number first
Copy the version number you want to go back
Get two version numbers
Prepare to fallback
First fallback
The fallback code is successful
Note – this is not yet complete –> the version at this time cannot be pushed to the remote warehouse
The second fallback (note the two choices)
The fallback is successful at this time
Add the rolled back version to the staging area
Add the rolled back version to the local warehouse
Push the rolled back version to the remote warehouse
Push successfully
Compare the changes of the remote warehouse before and after the rollback
Rollback succeeded
So far, the rollback version in idea is successful! ! !