Git commit to a rollback Code
Rollback command:
git the RESET --hard the HEAD ^ fall back to the previous version
git reset --hard HEAD ~ 3 times before submitting the first three to fall back, and so on, until the following n submit retreated back
git reset --hard commit_id retreated to / into, (rollback will be submitted before or after the submission) specified commit hash code
After submitting the rollback may fail, you must be forced to submit
:( strong push to the remote may need to be addressed to protect the state of the corresponding branch)
git the Push the HEAD Origin --force
Reply attention [information], free access to information architecture, video, as well as curated face questions
! [Insert Picture description here] (https://img-blog.csdnimg.cn/20200114155136352.jpg?x-oss-process = image / watermark, type_ZmFuZ3poZW5naGVpdGk, shadow_10 , text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3hpbnpoaWZ1MQ ==, size_16, color_FFFFFF, t_70