switch-branch

Synopsis

sample-rpkg switch-branch [-h] [-l] [--fetch] [branch]

Description

This command can switch to a local git branch. If provided with a remote branch name that does not have a local match it will create one. It can also be used to list the existing local and remote branches.

Arguments

branch

Branch name to switch to

Options

-h --help

show this help message and exit

-l --list

List both remote-tracking branches and local branches

--fetch

Fetch new data from remote before switch