bukinoshita / del-git-index

Safely delete index.lock of the current project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

del-git-index Build Status

Safely delete index.lock of the current project

Install

$ npm install -g del-git-index

Usage

$ git-index --help

  Usage:
    $ git-index        Deletes index.lock of the current project

  Options:
    -h, --help         Show help options
    -v, --version      Show version

Why

Accidentally deleted the entire git history by running rm -rf .git instead of running rm -rf .git/index.lock. So I don't have to worry anymore with pressing enter key by mistake.

Demo

Related

License

MIT Β© Bu Kinoshita

About

Safely delete index.lock of the current project

License:MIT License


Languages

Language:JavaScript 100.0%