Status
개념
working directory 상태와, staging area의 상태를 보여줌
- 어떤 파일이 git에 의하여 버전관리를 하고 있는지 아닌지
- 어떤 파일이 git에서 커밋되어 있지 않은지
- 어떤 파일이 변경되었는지
원리
최신 Index 안의 내용과 마지막 커밋한 tree안의 내용과 비교
명령어
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: a
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: src/components/SnowContainer.js