https://github.com/bukinoshita/del-git-index
Safely delete index.lock of the current project
https://github.com/bukinoshita/del-git-index
command-line delete git javascript nodejs
Last synced: 6 months ago
JSON representation
Safely delete index.lock of the current project
- Host: GitHub
- URL: https://github.com/bukinoshita/del-git-index
- Owner: bukinoshita
- License: mit
- Created: 2017-06-17T23:06:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T04:07:30.000Z (almost 5 years ago)
- Last Synced: 2024-10-29T12:54:18.031Z (over 1 year ago)
- Topics: command-line, delete, git, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 729 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# del-git-index [](https://travis-ci.org/bukinoshita/del-git-index)
> Safely delete index.lock of the current project
## Install
```bash
$ npm install -g del-git-index
```
## Usage
```bash
$ 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
- [git-synced](https://github.com/bukinoshita/git-synced) — 🎐 Keep a fork up to date
- [repo-exist](https://github.com/bukinoshita/repo-exist) — Checks if GitHub repository exist
- [gopn](https://github.com/bukinoshita/gopn) — Open GitHub repositories
- [is-github-repo](https://github.com/bukinoshita/is-github-repo) — Checks if string is a git repository
- [git-url-prettify](https://github.com/bukinoshita/git-url-prettify) — Prettify git url
- [git-url-uglify](https://github.com/bukinoshita/git-url-uglify) — Uglify git url
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)