Skip to content

alexfu/gitx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitx

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.

Usage

Add an extension with gitx add

$ gitx add alexfu/git-pick-branch

The 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-branch

List installed extensions with gitx list

$ gitx list
• alexfu/git-pick-branch/git-pick-branch

Remove 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

Install

PlatformCommand
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.

Extensions

Name Description
alexfu/git-pick-branch Interactively pick a branch with fzf
alexfu/git-pr-from-commit Create pull requests from a commit

License

MIT © Alex Fu

About

A CLI tool for augmenting git through shell scripts.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages