Git(깃)을 이용하여 프로젝트 관리시 Master(마스터)가 아닌 Develop(디벨로퍼)으로 생성하여 개발 후 Test 를 위해 Git Clone이 필요한 경우가 있다.
그런 경우 기본적으로 알고 있는 방법으로 Git Clone을 하는 경우 Master가 바로 Clone(클론)이 됨에 따라, Develop과 같이 특정 Branch(브랜치)를 Clone 하는 방법을 알아보도록 하자.
- $ git clone -b <branch명> <remote_repo 주소>
# git clone -b <branch명> <remote_repo 주소>
$ git clone -b develop https://github.com/project/test.git
Cloning into 'test'...
Username for 'https://github.com': xxxxx
Password for 'https://xxxxx@github.com':
remote: Enumerating objects: 52, done.
remote: Counting objects: 100% (52/52), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 3084 (delta 21), reused 34 (delta 10), pack-reused 3032
Receiving objects: 100% (3084/3084), 5.22 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1899/1899), done.
'기타' 카테고리의 다른 글
Java 버전 에러 (0) | 2022.12.21 |
---|---|
Git 설치 (0) | 2022.11.13 |
admob - app-ads.txt 설정 (0) | 2022.07.16 |
Button 배경색이 변경되지 않을 경우 (0) | 2022.05.27 |
Apache License 2.0 (0) | 2022.04.05 |