.. _switch-branch: switch-branch ============= .. program:: 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 --------- .. option:: branch Branch name to switch to Options ------- .. option:: -h --help show this help message and exit .. option:: -l --list List both remote-tracking branches and local branches .. option:: --fetch Fetch new data from remote before switch