wrgl branch

List, create, or delete branches

wrgl branch [BRANCH_NAME] [START_POINT] [flags]

Flags

-c, --copy

clone a branch and assign a new name to it

-d, --delete

delete a branch

-h, --help

help for branch

-l, --list

list branches that match wildcard patterns

-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

--debug-file

output debug logs to a file

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.

Examples

# list branches
wrgl branch

# list branches that match a pattern
wrgl branch -l <pattern>

# create a new branch
wrgl branch <newbranch> <ref or commit sum>

# clone a new branch
wrgl branch -c <newbranch> <oldbranch>

# rename a branch
wrgl branch -m <newbranch> <oldbranch>

# delete a branch
wrgl branch -d <branchname>