●Working Tree

실제로 작업을 하는 공간(워킹 디렉토리라고 생각). 버전으로 만들어지기 전의 공간

init 명령어를 통해 Git Repository로 설정(.git 폴더 생성)Git Repository로 설정(.git 폴더 생성)

 

 

●Staging Area

commit을 할 git에 올릴 파일을 담아두는 공간

add 명령어를 통해 Working tree->Staging Area

 

 

●Git Repository(directory)

commit된 파일이 있는 공간

init명령어로 설정한 git repository 폴더내의 .git 폴더임(숨김파일)

commit 명령어를 통해 Staging Area->Git Repository

 

★untracked file

새로 만들어지거나 한번도 stage에 올린적이 없어 git에게 tracking 되고 있지 않은 파일.

add 명령어를 통해 tracked 시킴.

tracked file은 add명령어를 통해 Staging Area에 올랐거나 commit명령어를 통해 Git Repository에 올라온적이 한번 이라도 있는파일. 

 

modified file

staged되거나 commit된 이후에 수정된 파일.

 

staged file

staged된 파일.

 

 

'기타 > Git' 카테고리의 다른 글

로컬 저장소 및 원격 저장소 연결 해제  (0) 2020.06.15
오류해결  (0) 2020.03.28
Git 명령어 3(branch&conflict)  (0) 2020.03.28
Git 명령어 2(Remote)  (0) 2020.03.28
Git 명령어(Local)  (0) 2020.03.27

+ Recent posts