브랜치 하나만을 clone해올 일이 있었다. 평범하게 clone을 사용하면 오류가 나지만, --single-branch를 사용하면 특정 브랜치만 clone할 수 있다.
git clone -b branch-name --single-branch repository-url
ex)
git clone -b develop --single-branch https://github.com/someuser/somerepo
'기록 > TIL' 카테고리의 다른 글
2023.08.21 - TypeScript url 파라미터로 request를 보내기 위해 배열로 받기, react does not recognize the `~~~` prop on a DOM element. (0) | 2023.08.21 |
---|---|
2023.08.18 - jotai 기본적인 사용법 (0) | 2023.08.18 |
2023.08.16 - Supabase의 TimeZone 세팅 (0) | 2023.08.16 |
2023.08.14 - 배포 시 console, warning, error 지우기 (0) | 2023.08.14 |
2023.08.11 - 최적화 같은 것. (0) | 2023.08.11 |