Restore (modified)
Restore (modified)
The below steps shows how a file was modified and then unmodified using the git restore command:
git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: hello.txt
no changes added to commit (use "git add" and/or "git commit -a")git restore .git status
On branch master
nothing to commit, working tree cleanLast updated