1.1.0 • Published 7 years ago

fugit v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

fugit

fugit is a git wrapper that sorts options before arguments, to avoid errors like bad flag '-p' used after filename. It's basically the git_flag_after_filename rule from thefuck, but automatically applied, so you can just use it instead of git

See also:

Installation

You can use yarn or npm to install fugit:

yarn global add fugit
# or
npm install --global fugit

Usage

One-off usage

Just use fugit instead of git:

# instead of
git log README.md -p
# which prints: fatal: bad flag '-p' used after filename

# do this
fugit log README.md -p

Or, if you use git, but see that annoying error, fix it by running:

fu!!

git integration

To always use fugit instead of git, you can add the following to your ~/.bashrc:

alias git='fugit'