docs: Modify git clone command to use --single-branch (#16000)

Co-authored-by: AnnAngela <9762652+AnnAngela@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
AnnAngela
2026-03-15 23:51:46 +08:00
committed by GitHub
parent d638a11ec9
commit 4fb6017103
5 changed files with 25 additions and 5 deletions

View File

@@ -42,9 +42,13 @@ icon: iconoir:developer
3. 본인 저장소의 dev 브랜치를 서브모듈 포함 클론:
```bash
git clone --recurse-submodules <저장소 git 링크> -b dev-v2
git clone --recurse-submodules <저장소 git 링크> -b dev-v2 --single-branch
```
::: tip
`--single-branch`는 `dev-v2` 브랜치 기록만 가져옵니다. 나중에 다른 브랜치로 전환하려면 먼저 `git remote set-branches origin '*'`를 실행한 뒤 다시 fetch해서 다른 브랜치 정보를 받아오거나, `--single-branch` 없이 저장소를 다시 클론해야 합니다.
:::
::: warning
Visual Studio 등 --recurse-submodules 미지원 Git GUI 사용 시, 클론 후 다음 실행: