Git version rollback and commit remote

1. Enter the remote git, find the version that needs to be rolled back in the submission record, and copy the version number

 

2. The terminal enters the project and executes git reset --hard 23a50a1fXXX41XXXXX0227

 3. Push the modification to the remote and execute the command

git push -f -u origin master (master is the specified branch)

Guess you like

Origin blog.csdn.net/weixin_43973909/article/details/129014672