javascript - Questions about git code rollback
怪我咯
怪我咯 2017-06-10 09:47:55
0
3
786

For example, there are two branches, dev-a, dev-b;
Now merge the dev-a branch into the dev-b branch. After merging, I found some problems and want to roll back;
That is He said that he still wants to keep the contents of the dev-b branch unchanged; how to do this?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
伊谢尔伦
git reset --hard HEAD~1  
伊谢尔伦

http://www.liaoxuefeng.com/wi...

曾经蜡笔没有小新

See if you have pushed it. If you have pushed it, use git revert. If it is only local, you can directly reset --hard the commit_id before merging

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