New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fugit

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fugit

`git` wrapper that sorts options before filenames

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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'

FAQs

Package last updated on 18 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc