Unstage Staged Files in Git

How do we unstage staged files in Git? Say you want to unstage file1 in current directly. Here is the command.

$ git reset -- file1

If you need to unsage all files….

$ git reset


Leave a Reply

Your email address will not be published. Required fields are marked *