git commit撤回操作

git commit 之后没有push,怎么回撤commit操作呢?

$ git reset HEAD~

原文地址:https://www.cnblogs.com/zhaoyanhaoBlog/p/11420660.html