How to remove staged changes from git?


To remove your stagged changes or to undo your last `git add` command you can simply use `git reset`

Running the below command will simply remove all files from your staging area:

$ git reset

In case you want to remove the a specifc file(s) then you can mention the name of these files, like this:

$ git reset filename.ext

Leave a Reply