Skip to main content

Simple CLI for interactive git rebase workflow.

Project description

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.

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

git_rb-0.1.3.tar.gz (465.1 kB view details)

Uploaded Source

Built Distribution

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

git_rb-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file git_rb-0.1.3.tar.gz.

File metadata

  • Download URL: git_rb-0.1.3.tar.gz
  • Upload date:
  • Size: 465.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for git_rb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5c60266deaca0e7b7ce0ea9aad4cbc98a50a5b90c8bc9da1e9c29e342a92f3aa
MD5 269056dcf708c3bad74208d76d25046f
BLAKE2b-256 418877aa3c68b6cce631480dd86629cc7cc96bab7dc63f1f0b2f48b769bd5cef

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_rb-0.1.3.tar.gz:

Publisher: release.yml on geo7/git-rb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file git_rb-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: git_rb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for git_rb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db40b244e369a1936b4c413e079561a64229329d2ac370f77de309fb38c30c02
MD5 15423d159bc00d0ba0e816549072d6fb
BLAKE2b-256 7a5c3079531c3c3821997da126bdfe79fd1954ed4057f99b0fa66c84829abf69

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_rb-0.1.3-py3-none-any.whl:

Publisher: release.yml on geo7/git-rb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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