Git

    [Git] 특정 Branch명에서만 Git Clone하고 싶을 때?

    [Git] 특정 Branch명에서만 Git Clone하고 싶을 때?

    특정 Branch명에서만 Git Clone하고 싶을 때 우리는 GIt 소스코드를 볼 때 모두 필요할 때도 있지만, 특정 Branch명에서 시작하고 싶을 때 있을 것이다. 예시) 우리는 main이 아니라 start-code라는 브랜치에서 소스코드를 GIt 명령어로 다운받고 싶을 때는, git clone -b start-code --single-branch [https://github.com/~] git clone -b [특정Branch명] --single-branch [https://github.com/~]