Skip to main content

🗜 gitz - tiny useful git commands, some dangerous 🗜

Project description

This is a collection of a dozen little git utilities, each of which does one useful thing well.

  • Eight only exist here

  • Two come from other git repos

  • One came from a chat on Reddit

  • I don’t know where one of them came from

Three of them use Python 3, the rest use Bash.

There’s a summary of what each command does below - for more details use the -h flag like this:

git add -h
git

How to install

Download and unzip this directory, then put that directory’s path into the PATH environment variable.

Safe commands (that don’t rewrite history)

git-all

Perform a command on each of multiple branches or directories.

git-rot

Changes the current branch by rotating forward or backward in the branch list

git-ls

Like ls but shows git info, with good use of color (from an unknown source)

git-infer

Commit changes with an auto-generated message (from https://github.com/moondewio/git-infer)

git-open

Opens the GitHub page for a repo/branch in your browser (from https://github.com/paulirish/git-open)

git-st

Pretty, compact alternative to git-status (from https://www.reddit.com/user/ex1c)

Dangerous commands (that do rewrite history)

These commands are not intended for use on a shared or production branch, but can significantly speed up rapid development on private branches.

git-amp

AMend just the last commit message and force-Push, somewhat safely

git-combine

Combines multiple commit IDs together using cherry picking

git-rename

Renames a git branch _and_ its remote branch

git-snip

Delete one or more commits by commit id or position

git-split

Split a commit into individual changes, one per file

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

gitz-0.9.1.tar.gz (12.5 kB view hashes)

Uploaded Source

Supported by

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