working : 작업을 하는 공간 ----워킹 디렉토리
stage: 임시로 저장하는 공간
repository: 실제로 저장하여 기록하는 공간
$ git add:
*워킹디렉토리에 단순 추가된, 추적되지 않는 파일(untracked)을 추척(tracked) 상태로 변경해 주는 것.
status 명령어: 스테이지 확인에 사용
$ git status
혹은
$ git ls-files --stage
버전 관리에서 제외하고 싶은 파일: .gitignore 파일에 등록
깃이 변화 이력을 기록하려면 파일들의 최종 상태가 stage 상태여야 한다
unstage vs stage
$ git status -------- 상태 확인
On branch master
No commits yet -------- 커밋이 없다는 메시지
nothing to commit (create/copy files and use "git add" to track) -------- 변경된 내용이 없다는 메시지
$ git clone https://github.com/jinyphp/jiny -------- 저장소복제
Cloning into 'jiny'...
remote: Enumerating objects: 975, done.
remote: Total 975 (delta 0), reused 0 (delta 0), pack-reused 975
Receiving objects: 100% (975/975), 4.98 MiB | 3.67 MiB/s, done.
Resolving deltas: 100% (307/307), done.