GIT branch 사용

Posted 2009/03/27 10:13 by kdsoo
Git 의 기본 branch(?)는 master 이다

master 에 새로운 브랜치를 만들어서 작업하려면

git branch kdsoo_branch

와 같이 브랜치를 생성하고 

git checkout kdsoo_branch

하면 해당 브랜치로 전환된다.

작업한 내용을 다시 master 로 머지하려면

git checkout master
git merge kdsoo_branch
와 같이 하면 된다.

만약 conflict 가 나면 차근차근 수정하고 다시 머지하자.

머지가 완료된 브랜치를 삭제할땐

git branch -d kdsoo_branch

머지 안하고 그냥 지우고 싶을땐

git branch -D kdsoo_branch
즐 GIT 하시라능


저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License

'[3] My specialty' 카테고리의 다른 글

Alcoholic Tux  (2) 2009/04/09
Linux collaboration summit 2009  (0) 2009/04/09
GIT branch 사용  (0) 2009/03/27
Linux kernel 2.6.29 TUX to TUZ devil  (0) 2009/03/24
Color temperature in kelvin for White Balance  (0) 2009/03/18
Not to miss email sent to me on mailing list  (0) 2009/03/08

Tag : ,

« PREV : 1 : ... 38 : 39 : 40 : 41 : 42 : 43 : 44 : 45 : 46 : ... 692 : NEXT »