[Git] 특정 Branch만 Clone하기

[Git] 특정 Branch만 Clone하기

Git을 사용하면서 브랜치 전체 Clone하지 않고, 특정 브랜치 하나만 사용해야할 경우가 있다.

하지만, 기본적으로 알고 있는 방법으로 git clone할 경우 Master가 바로 Clone됨으로, 특정 브랜치만 클론하는 방법을 알아보자


1
2
3
4
git clone -b <branch명> --single-branch <저장소URL>


ex) git clone -b rpi-4.12.y --single-branch https://github.com/raspberrypi/linux
자세히 보기
[Git] git status 한글 깨짐 해결하기