Skip to main content

Git rb

Ruff PyPI Latest Release License image Actions status

git-rb is a simple command-line tool to simplify interactive rebase workflow in Git, often I'd find my self copying hashes from git log output in order to paste into git rebase -i. This tools only purpose is to simplify that.

Code is self contained within main.py, so you could just copy the whole script.

Note: I had this a form of this script kicking around for a while and figured I'd try using Gemini CLI to do the rest. Results were mixed, I wasn't able to 'set and forget', but it was still useful.

Usage

.gitconfig

Typically I'll have the following in .gitconfig:

[alias]
  rb = !uvx git-rb

To provide alias git rb.

Example

Running this from sklearn gives:

Screenshot of git-rb's help message

Entering '6' in the prompt just runs git rebase -i <hash on line 6>, nothing fancy!

Screenshot of git-rb in action

Simple

A simpler approach would be to just use:

git rebase -i HEAD~{{ N }}

That would mean no messing about with rich though.

Metadata

Release files for git-rb 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-rb 0.1.3
File Size Uploaded
git_rb-0.1.3.tar.gz 465.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-rb 0.1.3
File Interpreter ABI Platform
git_rb-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 469.7 kB

Release files / git_rb-0.1.3.tar.gz

Download URL git_rb-0.1.3.tar.gz
Size 465.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5c60266deaca0e7b7ce0ea9aad4cbc98a50a5b90c8bc9da1e9c29e342a92f3aa
BLAKE2b-256 checksum
How to use checksums
418877aa3c68b6cce631480dd86629cc7cc96bab7dc63f1f0b2f48b769bd5cef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2025.

Transparency log

Release files / git_rb-0.1.3-py3-none-any.whl

Download URL git_rb-0.1.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db40b244e369a1936b4c413e079561a64229329d2ac370f77de309fb38c30c02
BLAKE2b-256 checksum
How to use checksums
7a5c3079531c3c3821997da126bdfe79fd1954ed4057f99b0fa66c84829abf69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page