{"id":16092474,"url":"https://github.com/bukinoshita/del-git-index","last_synced_at":"2026-01-15T22:37:27.051Z","repository":{"id":48000365,"uuid":"94653832","full_name":"bukinoshita/del-git-index","owner":"bukinoshita","description":"Safely delete index.lock of the current project","archived":false,"fork":false,"pushed_at":"2021-08-11T04:07:30.000Z","size":746,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T12:54:18.031Z","etag":null,"topics":["command-line","delete","git","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bukinoshita.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-17T23:06:50.000Z","updated_at":"2019-12-16T18:11:52.000Z","dependencies_parsed_at":"2022-08-12T16:11:51.667Z","dependency_job_id":null,"html_url":"https://github.com/bukinoshita/del-git-index","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fdel-git-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fdel-git-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fdel-git-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fdel-git-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bukinoshita","download_url":"https://codeload.github.com/bukinoshita/del-git-index/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246786607,"owners_count":20833718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","delete","git","javascript","nodejs"],"created_at":"2024-10-09T16:08:44.631Z","updated_at":"2026-01-15T22:37:27.013Z","avatar_url":"https://github.com/bukinoshita.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# del-git-index [![Build Status](https://travis-ci.org/bukinoshita/del-git-index.svg?branch=master)](https://travis-ci.org/bukinoshita/del-git-index)\n\n\u003e Safely delete index.lock of the current project\n\n\n## Install\n```bash\n$ npm install -g del-git-index\n```\n\n\n## Usage\n```bash\n$ git-index --help\n\n  Usage:\n    $ git-index        Deletes index.lock of the current project\n\n  Options:\n    -h, --help         Show help options\n    -v, --version      Show version\n```\n\n\n## Why\n\nAccidentally 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.\n\n\n# Demo\n\n![](https://github.com/bukinoshita/del-git-index/blob/master/demo.gif)\n\n\n## Related\n\n- [git-synced](https://github.com/bukinoshita/git-synced) — 🎐 Keep a fork up to date\n- [repo-exist](https://github.com/bukinoshita/repo-exist) — Checks if GitHub repository exist\n- [gopn](https://github.com/bukinoshita/gopn) — Open GitHub repositories\n- [is-github-repo](https://github.com/bukinoshita/is-github-repo) — Checks if string is a git repository\n- [git-url-prettify](https://github.com/bukinoshita/git-url-prettify) — Prettify git url\n- [git-url-uglify](https://github.com/bukinoshita/git-url-uglify) — Uglify git url\n\n## License\n\nMIT © [Bu Kinoshita](https://bukinoshita.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Fdel-git-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbukinoshita%2Fdel-git-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Fdel-git-index/lists"}