:git checkout -- file can discard the modifications in the workspace; :git reset HEAD file can undo the modifications in the temporary storage area and return it to the workspace state; :git reset --hard HEAD^ to return to " The status when adding distributed” version;
git reset --hard HEAD~1
git push --force
:git checkout -- file can discard the modifications in the workspace;
:git reset HEAD file can undo the modifications in the temporary storage area and return it to the workspace state;
:git reset --hard HEAD^ to return to " The status when adding distributed” version;
git reset --hard HEAD~1
git revert HEAD