git 取消上一次commit add
取消commit参考链接:https://blog.csdn.net/libusi001/article/details/131460699
取消add参考链接:https://blog.csdn.net/mus123/article/details/106304630
1 取消上一次commit
git reset HEAD~1
2 取消add
git reset .
取消commit参考链接:https://blog.csdn.net/libusi001/article/details/131460699
取消add参考链接:https://blog.csdn.net/mus123/article/details/106304630
git reset HEAD~1
git reset .