Skip to content

Git summary

GitDeveloperKim edited this page Apr 11, 2022 · 9 revisions

branch 관련 명령어

로컬에서 branch를 생성하고 원격 저장소에 동기화
git branch [브랜치명] : 생성
git checkout [브랜치명] : 이동
git checkout -b [브랜치명] : 생성하면서 이동
git branch origin [브랜치명] : 로컬에 만든 branch 원격 저장소에 반영
git branch --set-upstream-to origin/[브랜치명] : branch local remote 연동
git branch -a : 모든 브랜치 확인

Clone this wiki locally