The origin branch master code needs to be rolled back.. I found that I can’t..
The current method is to use local git reset --hard xxxx, then create an old_master branch, create an olg_master branch on the remote origin, and push it...
I feel this method is very low..
What is the correct approach and how to roll back origin master?...
You can refer to the solution in this blog http://blog.mtxcxin.cn/blog/git how to roll back a remote warehouse.html
git log
git reset --HARD xxxxxxxxxxxxxxxxxxxxx
Don’t use reset. Wouldn’t it be better to use git revert?