Branch
Manage branches.
wrgl branch config
Print branch config or set branch config
wrgl branch config BRANCH [flags]
Flags
-h, --help
help for config
--set-delimiter
set branch.delimiter. branch.delimiter tells Wrgl what delimiter to use when parsing branch.file
--set-file
set branch.file config to a CSV file. If branch.file is set, then you don't need to specify CSV_FILE_PATH in subsequent commits to BRANCH.
--set-primary-key
set branch.primaryKey. If branch.primaryKey is set, then you don't need to specify PRIMARY_KEY in subsequent commits to BRANCH.
--set-upstream-dest
set branch.merge. When both branch.remote and branch.merge are set, you can run `wrgl pull BRANCH` without specifying remote and refspec
--set-upstream-remote
set branch.remote. When both branch.remote and branch.merge are set, you can run `wrgl pull BRANCH` without specifying remote and refspec
Inherited flags
--badger-log
set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")
--cpuprofile
write cpu profile to file
--heapprofile
write heap profile to file
--log-file
output logs to specified file
--log-verbosity
log verbosity. Higher value means more log
--no-progress
don't display progress bar
--wrgl-dir
parent directory of repo, default to current working directory.
Examples
# print branch config as JSON
wrgl branch config my-branch
# make branch track a local file
wrgl branch config my-branch --set-file my_data.csv --set-delimiter '|' --set-primary-key id
# set upstream for branch
wrgl branch config my-branch --set-upstream-remote origin --set-upstream-dest my-branch
wrgl branch create
Create a new branch
wrgl branch create BRANCH { { --copy | --move } BRANCH | COMMIT } [flags]
Flags
-c, --copy
copy a branch and its reflogs
-h, --help
help for create
-m, --move
rename a branch
Inherited flags
--badger-log
set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")
--cpuprofile
write cpu profile to file
--heapprofile
write heap profile to file
--log-file
output logs to specified file
--log-verbosity
log verbosity. Higher value means more log
--no-progress
don't display progress bar
--wrgl-dir
parent directory of repo, default to current working directory.
Examples
# create a new branch from commit sum
wrgl branch create my-branch 1234567890abcdef1234567890abcdef
# create a new branch from an existing branch
wrgl branch create my-branch my-other-branch
# create a new branch from arbitrary ref
wrgl branch create my-branch refs/remotes/origin/my-branch
# copy a branch and its reflogs
wrgl branch create my-branch --copy my-other-branch
# rename a branch
wrgl branch create my-branch --move my-other-branch
wrgl branch delete
delete a branch
wrgl branch delete BRANCH [flags]
Flags
-h, --help
help for delete
Inherited flags
--badger-log
set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")
--cpuprofile
write cpu profile to file
--heapprofile
write heap profile to file
--log-file
output logs to specified file
--log-verbosity
log verbosity. Higher value means more log
--no-progress
don't display progress bar
--wrgl-dir
parent directory of repo, default to current working directory.
wrgl branch list
List branches
wrgl branch list [PATTERN...] [flags]
Flags
-h, --help
help for list
Inherited flags
--badger-log
set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")
--cpuprofile
write cpu profile to file
--heapprofile
write heap profile to file
--log-file
output logs to specified file
--log-verbosity
log verbosity. Higher value means more log
--no-progress
don't display progress bar
--wrgl-dir
parent directory of repo, default to current working directory.