Main Server Repository
에 바로 update, commit 을 하며 버전 관리를 한다.
ex ) CVS, ClearCase
Collaborator(Local Repository)
에서 update, commit을 하며 이를 Main Server Repository
에 pull, push 하여 버전 관리를 한다.
ex ) GNU arch, DCVS, Git, BitKeeper(유료)
설명 | 명령어 |
---|---|
저장소의 생성 | git init |
저장소에 파일 추가 | git add <filename> |
저장소에 변경 내용의 반영 | git commit |
저장소의 상태 확인 | git status |
저장소 로그 확인 | git log |
fork한 저장소를 컴퓨터에 clone 하기 | git clone https://github.com/{본인_아이디}/{저장소 아이디}.git |
깃허브에 반영 | git push origin <branchname> |
log를 ui로 확인 | gitk |
깃 실습
git add → git commit -m “” 순서로 진행
파일 수정
협업에 있어서 Branch는 필수적이다