git reset HEAD <pathname>

Unstage changes for a specific file or files

This command is used to unstage changes for a specific file or files. It moves the specified file or files back to the staging area, effectively undoing the 'git add' command.

The <pathname> parameter refers to the path of the file(s) you want to unstage. If no <pathname> is provided, all changes in the staging area will be unstaged.

Some potential variations include using the --soft flag to preserve changes in the working directory, using the --mixed flag (default) to reset the staging area to match the latest commit, or using the --hard flag to discard all changes in the working directory and staging area.

Specific examples:
git reset HEAD components/ui/Input.tsx

Sign in to enable bookmarking, reminders, progress-tracking and more...