git push后如何撤销
转载自:https://blog.csdn.net/qq_36460164/article/details/79857431
git reset --soft 会改变工作区,不会改变stage区,仅仅将commit回退到了指定的提交
git reset --mixed 不会改变工作区,但是会用指定的commit覆盖stage 区,之前所有暂存的内容都变为未暂存的状态
git reset –hard 使用指定的commit的内容覆盖stage区和工作区。
转载自:https://blog.csdn.net/qq_36460164/article/details/79857431
git reset --soft 会改变工作区,不会改变stage区,仅仅将commit回退到了指定的提交
git reset --mixed 不会改变工作区,但是会用指定的commit覆盖stage 区,之前所有暂存的内容都变为未暂存的状态
git reset –hard 使用指定的commit的内容覆盖stage区和工作区。