How to roll back when git push goes wrong
PHPz
PHPz 2017-05-17 10:02:51
0
1
1491

If other code was mistakenly submitted to the master branch, how to roll back the master branch online to its previous code?

PHPz
PHPz

学习是最好的投资!

reply all(1)
为情所困

Revert to the previous version first:
git reset --hard HEAD^

Then force push the current version to the cloud:
git push origin HEAD --force

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