Git

pixgram·2022년 4월 15일
0

local branch 생성

git branch <branch_name>

사용 할 branch 체크아웃

git checkout <branch_name>

remote branch 목록보기

git branch -r

생성한 local branch를 remote branch에 추가

git push origin <branch_name>

local branch, remote branch 연결

내 로컬 저장소에 있는 브랜치를 원격 저장소에 있는 브랜치와 연결한다.

git branch --set-upstream-to origin/<branch_name>
or
git branch -u origin/<branch_name>

리모트 브랜치 참조

리모트 브랜치의 더 이상 유효하지 않은 참조를 깨끗이 지운다.

git remote prune origin
git remote update --prune

로컬 저장소를 최신 정보로 갱신(리모트 저장소와 동기화)하며 자동적으로 더이상 유효하지 않은 참조를 제거.

git fetch -p

profile
Interactive Front-end Developer and WebGL Artist

0개의 댓글