mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+5
@@ -7,6 +7,11 @@ Personalize your workspace by applying a canonical dotfiles repository
|
||||
[40m [0m[91;40m$ coder dotfiles --yes git@github.com:example/dotfiles.git[0m[40m [0m
|
||||
|
||||
[1mOptions[0m
|
||||
-b, --branch string
|
||||
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 string, $CODER_SYMLINK_DIR
|
||||
Specifies the directory for the dotfiles symlink destinations. If
|
||||
empty, will use $HOME.
|
||||
|
||||
Reference in New Issue
Block a user