Git–总会有后悔药吃

1.整个项目回滚

1
git reset --hard | soft  hashId

2.特定某个文件回滚

1
git reset --hard | soft hashId 文件名字