git clone -b <branch_name> <remote_repo 주소>
git clone -b develop https://github.com/myrepository.git
develop 브랜치만 클론할 수 있다.
git checkout -t <remote>/<remote_branch>
git checkout -t origin/develop
연결된 origin 원격저장소의 develop 브랜치를 가져올 수 있다.
git push origin <local_branch_name>:<remote_branch_name>
git push origin my-feature:feature
수행 조건 - 로컬에 원격 저장소 브랜치가 존재해야한다.
origin이라는 원격저장소에 feature 브랜치로 my-feature(로컬 브랜치)를 push