- A branch in Git is simply a lightweight movable pointer to one of these commits.
- Git branches are effectively a pointer to a snapshot of your changes.
- 이슈에 해당하는 작업을 수행할 때, 별도의 브랜치를 만들고 작업한다.
- 작업이 끝난 후에는, PULL REQUEST를 사용해 내가 작업한 브랜치를 중요 브랜치(
main
,master
,development
,devel
)로 병합 시켜야 한다.
git merge
- 주의할점:
A
브랜치를B
브랜치로 합치려고 할 때는A
브랜치를 체크아웃 한 상태에서git merge B
를 입력한다