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
npm install --global fugit
Usage
One-off usage
Just use fugit
instead of git
:
git log README.md -p
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'