Git

Verba volant, scripta manent·2021년 1월 16일
0

Git & CLI

목록 보기
1/2
post-thumbnail

Git이란?

Version Control System의 플랫폼, 개발자의 소셜미디어

※ Version Control System을 사용하는 이유
1) 버전 저장
2) 이전 버전 재저장
3) 상황 이해
4) 협동
5) 백업

Git의 기능

Distributed

fork

repository를 복사하여 내 계정으로 가져오는 것

clone

복사한 repository를 내 컴퓨터로 가져오는 것

local repository

내 컴퓨터에서 source를 변경하는 것

push

local repository에서 변경한 것을 remote repository로 적용하는 것
명령어 : $ git push origin master
origin(대상) : remote repository
master : branch

pull

remote repository에서 변경한 것을 내 컴퓨터에 적용시키는 것
명령어 : $ git pull origin master
origin(대상) : local repository
master : branch

Git Workflow

Git workflow의 흐름

Staging Area

이전에 충돌을 해결하거나 선택적 버젼관리를 받기 위해 만들어짐

Commit

snapshot 하나하나를 만드는 것

Repository

일련의 기록과 작업흐름을 포함하는 개념

Repository 와 Commit의 관계도

Branching

가지를 새로 치는 것

Merging

새로 쳐진 가지를 합치는 것

Branching 과 Merging의 관계도

Branching 과 Merging의 안정도

profile
말은 사라지지만 기록은 남는다

0개의 댓글