feat: add --branch option to clone or checkout different dotfiles branch (#8331)

* feat: --branch option to clone different dotfiles branch
* chore: checkout specified branch if dotfiles already exist
This commit is contained in:
Steven Masley
2023-07-06 20:24:04 +00:00
committed by GitHub
parent 5bb6bc5571
commit 9f5bc7c10b
4 changed files with 135 additions and 0 deletions
+8
View File
@@ -20,6 +20,14 @@ coder dotfiles [flags] <git_repo_url>
## Options
### -b, --branch
| | |
| ---- | ------------------- |
| Type | <code>string</code> |
Specifies which branch to clone. If empty, will default to cloning the default branch or using the existing branch in the cloned repo on disk.
### --symlink-dir
| | |