执行两个命令:
$ git reset --hard HEAD^ HEAD is now at 650a8e57e Slant bitmap format glyph. And rewrite codes for easy to understant. $ git push origin master -f warning: redirecting to https://gitlab.freedesktop.org/quantum6/freetype.git/ Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 To https://gitlab.freedesktop.org/quantum6/freetype + 651512ff9...650a8e57e master -> master (forced update)
其中:
HEAD^是最近一次提交。也可以写成HEAD~1。
自然的,最近再次提交就是HEAD~2