table of contents
- buster 0.18-1
STG-BRANCH(1) | StGit Manual | STG-BRANCH(1) |
NAME¶
stg-branch - Branch operations: switch, list, create, rename, delete, ...SYNOPSIS¶
stg branch stg branch [--merge] [--] <branch> stg branch --list stg branch --create [--] <new-branch> [<committish>] stg branch --clone [--] [<new-branch>] stg branch --rename [--] <old-name> <new-name> stg branch --protect [--] [<branch>] stg branch --unprotect [--] [<branch>] stg branch --delete [--force] [--] <branch> stg branch --cleanup [--force] [--] [<branch>] stg branch --description=<description> [--] [<branch>]
DESCRIPTION¶
Create, clone, switch between, rename, or delete development branches within a git repository.stg branch
stg branch <branch>
OPTIONS¶
-l, --list-c, --create
StGit will try to detect the branch off of which the new branch is forked, as well as the remote repository from which that parent branch is taken (if any), so that running stg-pull(1) will automatically pull new commits from the correct branch. It will warn if it cannot guess the parent branch (e.g. if you do not specify a branch name as committish).
--clone
The description of the new branch is set to tell it is a clone of the current branch. The parent information of the new branch is copied from the current branch.
-r, --rename
-p, --protect
-u, --unprotect
--delete
A protected branch cannot be deleted; it must be unprotected first (see --unprotect above).
If you delete the current branch, you are switched to the "master" branch, if it exists.
--cleanup
A protected branch cannot be cleaned up; it must be unprotected first (see --unprotect above).
A cleaned up branch can be re-initialised using the stg init command.
-d DESCRIPTION, --description DESCRIPTION
--merge
--force
STGIT¶
Part of the StGit suite - see stg(1)09/02/2017 | StGit |