How to remove files from git staging area?

后端 未结 14 1251
失恋的感觉
失恋的感觉 2020-11-28 16:53

I made changes to some of my files in my local repo, and then I did git add -A which I think added too many files to the staging area. How can I delete all the

14条回答
  •  無奈伤痛
    2020-11-28 17:28

    The best way to undo your file which is already there in the staging area is git reset --hard which brings your staged files to back. Careful now, that will remove staged and unstaged changes.

提交回复
热议问题