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:
- Load
.gibrconfigfrom the current directory or a parent directory. - Use the configured issue tracker to fetch issue
#123. - Generate a branch name using the
DEFAULT.branch_name_format(see config example). - 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_formatuses these placeholders:{issuetype},{issue},{title}.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8454f58fc479dca95ad7ae1837893b8d451bb75be97fa528e789bbd86efea72
|
|
| MD5 |
0a82c17e048bc256f97bc975b7fb8404
|
|
| BLAKE2b-256 |
e92cfddc6677b9bd8701b4463362a4e3a53e856fbca4b8ed3d4f98d3fc02859c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d440bcac9719363e777f0042234d7a474f1ec5966617afe314470d63f03b8f2d
|
|
| MD5 |
02059148df99e176d053e115da45ab89
|
|
| BLAKE2b-256 |
cf71164f173183a90cac4ff1b25c2a74cd383565c2862d6ff73bb713bd6c29e4
|