git 几种情况下的撤销操作

一:git add 后的撤销 -----    git reset head 文件名  二:git commit 后的撤销  分三种撤销方式 1:git reset head^  等同于 git reset --mixed HEAD^  。    此操作会撤销git commit,撤销git add .  2:git reset --soft head^    此操作只会撤销git commit 
相关文章
相关标签/搜索