git 에서 특정 브랜치만 clone 하는 방법

2023. 8. 16. 06:27git

git 에서 전체 branch 를 clone 하지 않고 특정 branch 하나만 클론하는 것이 가능하다.

 

git clone -b {branch_name} --single-branch {저장소 URL}

ex) git clone -b dev --single-branch https://github.com/munyeol-Yoon/TicketNest.git

 

 

참고링크

https://www.slipp.net/questions/577

 

git에서 특정 브랜치만 clone하는 방법

git을 사용하다 브랜치 전체를 clone하지 않고 특정 브랜치 하나만 clone하는 것이 가능하다. 특히 브랜치가 많은 경우 이 방법을 사용할 수 있다. git clone -b {branch_name} --single-branch {저장소 URL} ex) git

www.slipp.net

 

'git' 카테고리의 다른 글

Git Flow  (0) 2024.01.16
git/github 방금 commit 한 메시지 변경하기  (0) 2023.07.12
github SSH Repository [ git ]  (0) 2023.06.24
Git  (0) 2023.05.04
git 변경내용 가져와 사용하기  (0) 2023.05.04