Skip to main content

A Git CLI tool for intelligently creating branch names

Project description

gibr

A CLI that generates Git branch names from issue trackers (currently GitHub) and creates + pushes the branch to origin.

Quick start

Installation

pip install gibr

Usage

gibr 123

The command above will:

  1. Load .gibrconfig from the current directory or a parent directory.
  2. Use the configured issue tracker to fetch issue #123.
  3. Generate a branch name using the DEFAULT.branch_name_format (see config example).
  4. Create the branch locally and push it to origin.

Verbose logging

Add --verbose to any command to enable debug-level logging:

gibr 123 --verbose
# or
gibr --verbose 123

Configuration (.gibrconfig)

Example .gibrconfig (place in repo root or parent directory):

[DEFAULT]
branch_name_format = {issuetype}/{issue}-{title}

[issue-tracker]
name = github

[github]
repo = owner/repo
token = $GITHUB_TOKEN

Notes:

  • Environment variables in config values are expanded.
  • branch_name_format uses these placeholders: {issuetype}, {issue}, {title}.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gibr-0.1.0.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gibr-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file gibr-0.1.0.tar.gz.

File metadata

  • Download URL: gibr-0.1.0.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gibr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8454f58fc479dca95ad7ae1837893b8d451bb75be97fa528e789bbd86efea72
MD5 0a82c17e048bc256f97bc975b7fb8404
BLAKE2b-256 e92cfddc6677b9bd8701b4463362a4e3a53e856fbca4b8ed3d4f98d3fc02859c

See more details on using hashes here.

File details

Details for the file gibr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gibr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gibr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d440bcac9719363e777f0042234d7a474f1ec5966617afe314470d63f03b8f2d
MD5 02059148df99e176d053e115da45ab89
BLAKE2b-256 cf71164f173183a90cac4ff1b25c2a74cd383565c2862d6ff73bb713bd6c29e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page