How can I unstage my files again after making a local commit?

前端 未结 7 853
灰色年华
灰色年华 2020-12-22 16:16

I have executed the following command

git add 
git commit -m \"add the foo.java file\"

How can I delete my local commit now

7条回答
  •  星月不相逢
    2020-12-22 16:29

    git reset --soft is just for that: it is like git reset --hard, but doesn't touch the files.

提交回复
热议问题