Skip to content
go-libfossil Artifact [89df7555cb]
Login

Artifact [89df7555cb]

Artifact 89df7555cb3391ba3fd2564b8123ced379c3eadced81231b714ed17986887901:


---
title: 'repo branch'
weight: 360
generated: true
description: 'Branch operations'
---

<!-- Generated by scripts/gen-cli-docs.sh from the libfossil --help output. Do not edit; change the help text in cli/ and run make docs-gen. -->

```text
Usage: libfossil repo branch <command>

Branch operations

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

Commands:
  repo branch ls [flags]
    List branches

  repo branch new <name> [flags]
    Create new branch

  repo branch close <name> [flags]
    Close a branch
```

## repo branch ls

```text
Usage: libfossil repo branch ls [flags]

List branches

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

      --closed         Show only closed branches
      --all            Show all branches (open and closed)
```

## repo branch new

```text
Usage: libfossil repo branch new <name> [flags]

Create new branch

Arguments:
  <name>    Branch name

Flags:
  -h, --help              Show context-sensitive help.
  -R, --repo=STRING       Path to repository file
  -v, --verbose           Verbose output

      --from=STRING       Parent version (default: tip)
  -m, --message=STRING    Checkin comment
      --user=STRING       Checkin user (default: OS username)
      --nosign            Do not sign the branch's check-in, even with the
                          clearsign setting on
```

## repo branch close

```text
Usage: libfossil repo branch close <name> [flags]

Close a branch

Arguments:
  <name>    Branch name to close

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

      --user=STRING    User for control artifacts (default: OS username)
```