Syntax:
git restore --staged (filename)
Example:
git restore --staged index.html
Note: It will successfully execute if the file is in the staged area; otherwise, it will throw an error stating "did not match any files."
git show-ref
git checkout -b feature-x
or
git switch -b feature-x
git status
git add .