Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 363 Bytes

unstage-files.md

File metadata and controls

19 lines (12 loc) · 363 Bytes

Unstage Files

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.