一、
git checkout -- filename //撤销工作区的修改
二、
git reset HEAD filename //撤销暂存区的 add
三、
git reset commit_id //撤销中间些提交 回到指定commit位置
一、
git checkout -- filename //撤销工作区的修改
二、
git reset HEAD filename //撤销暂存区的 add
三、
git reset commit_id //撤销中间些提交 回到指定commit位置