-
[gitHub] 특정 브랜치만 clone 하기Develop/gitHub 2021. 11. 26. 18:53
git을 사용하다 브랜치 전체를 clone하지 않고 특정 브랜치 하나만 clone하는 것이 필요할 때가 있다.
<해결>
$ git clone -b {branch_name} --single-branch {저장소 URL}
예: git clone -b tempbranch --single-branch https://github.com/test/testtest
'Develop > gitHub' 카테고리의 다른 글
[gitHub] 이미 만들어진 원격 저장소 clone 받아 협업하기 (pull, push 오류 해결 등) (0) 2022.05.22 [gitHub] 원격-로컬 저장소 연결/끊기 (0) 2022.02.18 [gitHub] 깃허브에 파일/폴더 업로드하기 (터미널x) (0) 2022.02.03 [gitHub] commit 메시지 수정하기 (0) 2021.12.01 [gitHub] commit 메세지와 함께 push 하기 (0) 2021.12.01