Simple CLI for interactive git rebase workflow.
Project description
Git rb
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:
Entering '6' in the prompt just runs git rebase -i <hash on line 6>, nothing fancy!
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c60266deaca0e7b7ce0ea9aad4cbc98a50a5b90c8bc9da1e9c29e342a92f3aa
|
|
| MD5 |
269056dcf708c3bad74208d76d25046f
|
|
| BLAKE2b-256 |
418877aa3c68b6cce631480dd86629cc7cc96bab7dc63f1f0b2f48b769bd5cef
|
Provenance
The following attestation bundles were made for git_rb-0.1.3.tar.gz:
Publisher:
release.yml on geo7/git-rb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
git_rb-0.1.3.tar.gz -
Subject digest:
5c60266deaca0e7b7ce0ea9aad4cbc98a50a5b90c8bc9da1e9c29e342a92f3aa - Sigstore transparency entry: 265899917
- Sigstore integration time:
-
Permalink:
geo7/git-rb@95897d2ede12e8f6ef5e72e8233b99b489a34d4f -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/geo7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@95897d2ede12e8f6ef5e72e8233b99b489a34d4f -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db40b244e369a1936b4c413e079561a64229329d2ac370f77de309fb38c30c02
|
|
| MD5 |
15423d159bc00d0ba0e816549072d6fb
|
|
| BLAKE2b-256 |
7a5c3079531c3c3821997da126bdfe79fd1954ed4057f99b0fa66c84829abf69
|
Provenance
The following attestation bundles were made for git_rb-0.1.3-py3-none-any.whl:
Publisher:
release.yml on geo7/git-rb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
git_rb-0.1.3-py3-none-any.whl -
Subject digest:
db40b244e369a1936b4c413e079561a64229329d2ac370f77de309fb38c30c02 - Sigstore transparency entry: 265899933
- Sigstore integration time:
-
Permalink:
geo7/git-rb@95897d2ede12e8f6ef5e72e8233b99b489a34d4f -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/geo7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@95897d2ede12e8f6ef5e72e8233b99b489a34d4f -
Trigger Event:
push
-
Statement type: