git代码回滚

  1. 先切换到指定分支:该分支必须是非受保护的分支,才能推送远程成功;
  2. 回滚到指定的版本   e377f60e28c8b84158:指定的版;
  3. git reset --hard e377f60e28c8b84158;
  4. git push -f origin 指定分支
Life is so short,do something to make yourself happy, such as coding.
原文地址:https://www.cnblogs.com/dongjiang/p/11413872.html