Skip to content

Repository files navigation

Git Bartender Logo

Git Bartender

Providing Git shortcuts as well as a drinking problem and occasional yelling.

A Git CLI wrapper that provides shortcuts for useful Git commands you'd usually forget after searching.
As long as something looks enough like a command, the bartender will probably get it right for you, so be as drunk as you'd like!

⬇️ Installation

  1. Install Bun

  2. Install Git Bartender globally using Bun

    bun install https://github.com/PalmDevs/git-bartender --global
  3. Enjoy your new companion

    git-bartender help# or
    gb help

🍹 Usage

CommandDescriptionAliasesUsage/Examples
helpShows the manual, so I can deal with less bullshit from you.hgb help
gb help [command]
gb help [alias]
abortWhat ya mom should've done years ago. Aborts a stuck process.abgb abort
add-missingAdd missing files to the latest commit. You made a broken commit, didn't you?addmissing, addmgb add-missing [...files]
discardWasted time on something that didn't work?explode, dcgb discard
githubThings related to the Hub- shit. Walked myself right into that one.ghgb github <subcommand>
github actionsJust pushed your changes? Want to watch the deployment fail?a, actiongb github actions
gb github actions [workflow]
gb github actions [workflow] --branch [branch]
gb github actions [workflow] -b [branch]
github pull-requestOpen a pull request. What did you expect?pr, pullrequestgb github pull-request
gb github pull-request <target_branch>
gb github pull-request <target_remote>/[target_branch]
gb github pull-request <target_remote>/[target_branch]:<from_remote>/[from_branch]

Examples:
gb github pull-request dev
gb github pull-request upstream/main
gb github pull-request dev:staging
gb github pull-request dev:upstream/main
gb github pull-request /main:upstream/
ignoreIgnore your files, like ignoring your problems.igb ignore [...patterns]
gb ignore (view ignored files)
petPetting me? Seriously?gb pet
unignoreUnignoring your problems now? Good for you.ugb unignore [...patterns]
undoUncommits your commits because you have commitment issues.udgb undo [amount]
unstageDid you fuckin' stage .env? Remove that!unadd, !addgb unstage [...files]
whatYa really dumb enough to not know what you're working on?whichgb what <subcommand>
what branchFigured only you would forget what branch you're working on...gb what branch
what commitYou don't know what commit you're on?shagb what commit
gb what commit -l <length>

⏱️ Future Plans

  • Add gb github actions Owner/Repo (notice Owner/Repo)
  • Make gb help show examples
  • Auto-correcting arguments like branch names passed into gb github pull-request
  • Add gb continue (to continue whatever operation you're stuck on)
  • Add gb list (lists files based on predefined filters)
  • Add gb push (pushes with attempts to fix when it fails)
  • Add gb pull (pulls with attempts to fix when it fails)
  • Add gb add (git add with staging certain ranges, but you type it all out instead of doing it in interactive staging)

About

🦝 Providing Git shortcuts as well as a drinking problem and occasional yelling.

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages