gitx (git extensions) is a CLI tool for adding custom commands to git.
Commands are just shell scripts, so they can be as simple or as complex as you want.
Add an extension with gitx add
$ gitx add alexfu/git-pick-branchThe argument must be a public GitHub repository in the form
owner/repo
All custom commands in alexfu/git-pick-branch are now available for use like so:
$ git pick-branchList installed extensions with gitx list
$ gitx list
• alexfu/git-pick-branch/git-pick-branchRemove extensions with gitx remove. You can remove an entire extension, a single command, or every extension from an owner.
$ gitx remove alexfu/git-pick-branch
$ gitx remove alexfu/git-pick-branch/git-pick-branch
$ gitx remove alexfu| Platform | Command |
|---|---|
| macOS, Apple Silicon |
curl -sSL https://github.com/alexfu/gitx/releases/latest/download/gitx_darwin_arm64.tar.gz | sudo tar xz -C /usr/local/bin gitx |
| macOS, Intel |
curl -sSL https://github.com/alexfu/gitx/releases/latest/download/gitx_darwin_amd64.tar.gz | sudo tar xz -C /usr/local/bin gitx |
| Linux, x86_64 |
curl -sSL https://github.com/alexfu/gitx/releases/latest/download/gitx_linux_amd64.tar.gz | sudo tar xz -C /usr/local/bin gitx |
Then add the following line to your shell's startup file (~/.zshrc, ~/.bashrc, ~/.config/fish/config.fish, etc.):
export PATH="$HOME/.gitx:$PATH"Restart your shell or source the file for the change to take effect.
| Name | Description |
|---|---|
| alexfu/git-pick-branch | Interactively pick a branch with fzf |
| alexfu/git-pr-from-commit | Create pull requests from a commit |
MIT © Alex Fu