본문 바로가기
IT/git

GIT - Status

by 내일은교양왕 2023. 6. 13.

개념
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

 

Reference

https://www.youtube.com/watch?v=jpy_SL05g7g 

 

'IT > git' 카테고리의 다른 글

GIT - pull, push, clone이 명령어로 안될 때  (0) 2023.06.13
GIT - Tag  (0) 2023.06.13
GIT - Stash  (0) 2023.06.13
GIT - Reset  (0) 2023.06.13
GIT - Prune  (0) 2023.06.13