git restore는 수정한 파일을 되돌리거나 staging 된 파일을 해제할 때 사용한다.
수정했지만 아직 add 하지 않은 파일을 마지막 commit 상태로 되돌린다.
git restore <file name>git restore README.md수정 내용이 사라질 수 있다.
git add 한 파일을 staging 에서 내린다.
git restore --staged <file name>git restore --staged README.md전부 staging 해제한다.
git restore --staged .git restore <file name>
git restore --staged <file name>
git restore --staged .