Skip to content

Commit 8fc07a4

Browse files
committed
Update WindowsQuickStart.md
Update the documentation to include a note on how to switch to branches.
1 parent 558ebd5 commit 8fc07a4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/WindowsQuickStart.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ You may also sync to specific toolchain versions by providing `repo` with the co
115115
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync -m path\to\stable.xml
116116
```
117117

118+
If you wish to build a specific release branch, you can specify the `-b` (branch) option to `repo` to checkout the branch:
119+
```
120+
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo init -b release/6.0
121+
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync
122+
```
123+
124+
You may also do this at the initial checkout time as:
125+
```
126+
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo init -u https://github.com/compnerd/swift-build -b release/6.0
127+
```
128+
118129
> [!NOTE]
119130
> The first clone will fail if you do not have git-lfs. The failure is due to the inability to checkout the ICU data which is stored using LFS, but is not fatal in practice.
120131

0 commit comments

Comments
 (0)