git init
git add
git commit
git log
git remote add [저장소이름] [저장소주소]
git remote
: 원걱저장소의 리스트(이름)git remote -v
: 원격저장소의 리스트(이름, 주소)
git branch
: Branch 리스트 출력git branch [브랜치이름]
: 새로운 Branch 생성git checkout [브랜치이름]
&git switch [브랜치이름]
: Branch 이동git branch -d [브랜치이름]
: Branch 삭제git branch -b [브랜치이름]
&git switch -c [브랜치이름]
: Branch 생성 & 이동git merge [브랜치이름]
: 현재 Branch에서 특정 Branch를 병합
- fast-forward merge
- auto merge (without conflict)
- merge with conflict
- 동일 파일 그리고 동일 라인의 내용이 충돌될 때