1.git reset --soft 上一个commit id:会将本地改动放到缓存区 2.git reset --mixed 上一个commit id :不会将本地改动放到缓存区 3.git reset --hard 上一个commit id:本地的改动会丢失