말이 조금 이상한데

대부분 원격과 로컬은 같은 브랜치 명으로 되어 있습니다.


local master ------------------------------------ remote master

local release ------------------------------------ remote release


그랜데 

local master ------------------------------------ remote release

를 하고 싶을때가 있습니다.


# 마스터 브랜치로 체크아웃 한다.

git checkout master

# 로컬 마스터 브랜치를 리모드 릴리즈에 푸쉬한다.

git push origin master:release


# 참고로 삭제랑 혼동하면 안됩니다.

# 리모트 릴리즈 브랜치 삭제 코드

git push origin :release


참고: http://mobicon.tistory.com/163

'VCS > Git' 카테고리의 다른 글

[Git] Clone the git without tags.  (0) 2015.06.10
[Git] Git 공부하기 좋은 온라온 교육자료  (0) 2015.05.03
[Git] 작업의 취소  (0) 2015.03.22
[Git] Git 커밋 수정하기  (0) 2015.03.14
[GitHub] Generating SSH Keys  (0) 2015.01.31
posted by 뚱2

[Git] Learn Git Branching

VCS/Git 2014. 1. 13. 23:46

링크 : http://pcottle.github.io/learnGitBranching/

'VCS > Git' 카테고리의 다른 글

[Git] Set up SSH for Git  (0) 2014.04.04
[Git] git command를 편하게 변경하기  (0) 2014.01.15
[Git] Merge VS Rebase  (0) 2013.12.27
[Git] Pro Git 한글 문서  (0) 2013.12.20
[Git] Advanced Git  (0) 2013.11.27
posted by 뚱2