특정 branch clone
git clone -b {branch_name} --single-branch {저장소 URL}
ex) git clone -b javajigi --single-branch https://github.com/javajigi/java-racingcar
single branch clone 이후 특정 branch 추가 clone
git remote set-branches --add origin {branch_name}
git fetch origin dev_front
# 브랜치 리스트 확인
git branch -a
git checkout {branch_name}
'Version Control > Git' 카테고리의 다른 글
[Git] submodule init/clone/update (0) | 2024.06.19 |
---|---|
[Git] 로컬 브랜치 ↔ 원격 브랜치 동기화 (0) | 2022.06.17 |