Category: Git
You can unstage files that are ready for commit by using the git restore
command.
For example, to unstage a file called index.html
, use the following command:
git restore --staged /path/to/file/index.html
To unstage all changes:
git restore --staged .
Unstaged changes will remain on disk.