How does git roll back origin master to any commit version?
漂亮男人
漂亮男人 2017-05-02 09:31:40
0
3
682

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?...

漂亮男人
漂亮男人

reply all(3)
Ty80

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?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template