git add .后如何撤销

放弃git add .的暂存
git reset
放弃本次所有的更改
git reset --hard HEAD
posted @ 2023-08-16 16:01  七星飘虫  阅读(44)  评论(0)    收藏  举报