撤销上一次的commit

撤销上一次的commit

git reset HEAD~

如果是撤销所有的已经add的文件:

git reset HEAD .

猜你喜欢

转载自www.cnblogs.com/mlh1421/p/12067284.html
今日推荐