git reset 理解

http://www.open-open.com/lib/view/open1397013992747.html

一般在工作中用的比较多的是: git reset --hard <commitID>
这样在工作区和缓存区,就都被重置了,

git reflog能列出所有的commit,比git log --oneline可能更全

posted @ 2016-11-24 10:05  qqisnow2021  阅读(157)  评论(0编辑  收藏  举报