Skip to content

josephfrazier/fugit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published