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!
-
Install Bun
-
Install Git Bartender globally using Bun
bun install https://github.com/PalmDevs/git-bartender --global
-
Enjoy your new companion
git-bartender help # or gb help
Command | Description | Aliases | Usage/Examples |
---|---|---|---|
help | Shows the manual, so I can deal with less bullshit from you. | h | gb help gb help [command] gb help [alias] |
abort | What ya mom should've done years ago. Aborts a stuck process. | ab | gb abort |
add-missing | Add missing files to the latest commit. You made a broken commit, didn't you? | addmissing, addm | gb add-missing [...files] |
discard | Wasted time on something that didn't work? | explode, dc | gb discard |
github | Things related to the Hub- shit. Walked myself right into that one. | gh | gb github <subcommand> |
github actions | Just pushed your changes? Want to watch the deployment fail? | a, action | gb github actions gb github actions [workflow] gb github actions [workflow] --branch [branch] gb github actions [workflow] -b [branch] |
github pull-request | Open a pull request. What did you expect? | pr, pullrequest | gb 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/ |
ignore | Ignore your files, like ignoring your problems. | i | gb ignore [...patterns] gb ignore (view ignored files) |
pet | Petting me? Seriously? | gb pet |
|
unignore | Unignoring your problems now? Good for you. | u | gb unignore [...patterns] |
undo | Uncommits your commits because you have commitment issues. | ud | gb undo [amount] |
unstage | Did you fuckin' stage .env? Remove that! | unadd, !add | gb unstage [...files] |
what | Ya really dumb enough to not know what you're working on? | which | gb what <subcommand> |
what branch | Figured only you would forget what branch you're working on... | gb what branch |
|
what commit | You don't know what commit you're on? | sha | gb what commit gb what commit -l <length> |
- Add
gb github actions Owner/Repo
(noticeOwner/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)