사용자 도구

사이트 도구


git:cheatsheet

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
git:cheatsheet [2019/11/06 14:08]
kwon37xi [Remote Branch]
git:cheatsheet [2019/11/06 14:10]
kwon37xi [Remote Branch]
줄 158: 줄 158:
 ===== Remote Branch ===== ===== Remote Branch =====
   * 로컬 브랜치를 만들어 작업하고 나서 다음과 같이 작업한다. ''origin''은 원격지 이름으로 대체될 수 있다.   * 로컬 브랜치를 만들어 작업하고 나서 다음과 같이 작업한다. ''origin''은 원격지 이름으로 대체될 수 있다.
-  * **''git checkout -b [localbranchname] origin/[remotebranchname]''** : 원격 브랜치를 로컬 브랜치를 생성하며 체크아웃한다.+  * **''git checkout %%--%%track origin/serverfix''** : 원격 브랜치를 브랜치 이름 그대로 생성하며 체크아웃. 
 +  * **''git checkout -b [localbranchname] origin/[remotebranchname]''** : 원격 브랜치를 로컬 브랜치를 생성하며 체크아웃한다. 로컬 브랜치 이름을 다르게 가져갈 수 있다.
   * ''git push %%--%%set-upstream origin [remotebranchname]'' : 현재 브랜치를 원격 브랜치에 연결하고 푸시한다.   * ''git push %%--%%set-upstream origin [remotebranchname]'' : 현재 브랜치를 원격 브랜치에 연결하고 푸시한다.
   * ''git push origin [remotebranchname]'' : 원격브랜치로 push. 원격브랜치가 없으면 만든다.   * ''git push origin [remotebranchname]'' : 원격브랜치로 push. 원격브랜치가 없으면 만든다.
git/cheatsheet.txt · 마지막으로 수정됨: 2024/02/06 09:18 저자 kwon37xi