{"id":15067341,"url":"https://github.com/ionicabizau/git-unsaved","last_synced_at":"2025-04-05T14:10:02.573Z","repository":{"id":57148066,"uuid":"82075279","full_name":"IonicaBizau/git-unsaved","owner":"IonicaBizau","description":":mag_right: Scan your projects directory for dirty git repositories.","archived":false,"fork":false,"pushed_at":"2025-02-13T19:40:13.000Z","size":23,"stargazers_count":84,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T14:09:55.535Z","etag":null,"topics":["command-line","git","hacktoberfest","nodejs","repository"],"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/IonicaBizau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ionicabizau","patreon":"ionicabizau","open_collective":"ionicabizau","custom":"https://www.buymeacoffee.com/h96wwchmy"}},"created_at":"2017-02-15T15:27:42.000Z","updated_at":"2025-02-13T19:40:11.000Z","dependencies_parsed_at":"2025-03-29T13:20:41.983Z","dependency_job_id":null,"html_url":"https://github.com/IonicaBizau/git-unsaved","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-unsaved","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-unsaved/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-unsaved/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-unsaved/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IonicaBizau","download_url":"https://codeload.github.com/IonicaBizau/git-unsaved/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345856,"owners_count":20924102,"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","git","hacktoberfest","nodejs","repository"],"created_at":"2024-09-25T01:19:52.844Z","updated_at":"2025-04-05T14:10:02.566Z","avatar_url":"https://github.com/IonicaBizau.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ionicabizau","https://patreon.com/ionicabizau","https://opencollective.com/ionicabizau","https://www.buymeacoffee.com/h96wwchmy","https://www.buymeacoffee.com/H96WwChMy","https://www.patreon.com/ionicabizau","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --\u003e\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# `$ git-unsaved`\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/git-unsaved.svg)](https://www.npmjs.com/package/git-unsaved) [![Downloads](https://img.shields.io/npm/dt/git-unsaved.svg)](https://www.npmjs.com/package/git-unsaved) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github\u0026utm_medium=button\u0026utm_term=johnnyb\u0026utm_campaign=github)\n\n\u003ca href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n\n\n\n\n\n\n\n\u003e Scan your projects directory for dirty git repositories.\n\n\n\n\n\n\n## Features\n\n\n - :rocket: Very fast–gives feedback while scanning the directories.\n - :zap: Clean output\n - :tokyo_tower: Checks if the local commits/branches are pushed to the remote\n - :eyes: Detects uncommited changes (new files, modified, deleted etc)\n - :dizzy: Lovely output\n\n\n\n\n\n\n\n[![git-unsaved](https://i.imgur.com/2LhUtwg.gif)](#)\n\n\n\n\n\n\n\n## :cloud: Installation\n\nYou can install the package globally and use it as command line tool:\n\n\n```sh\n# Using npm\nnpm install --global git-unsaved\n\n# Using yarn\nyarn global add git-unsaved\n```\n\n\nThen, run `git-unsaved --help` and see what the CLI tool can do.\n\n\n```\n$ git-unsaved --help\nUsage: git-unsaved [options]\n\nScan your projects directory for dirty git repositories.\n\nOptions:\n  -r, --relative-paths  Display the relative paths.\n  -p, --path \u003cpath\u003e     A custom folder path (default: the current working\n                        directory).\n  -h, --help            Displays this help.\n  -v, --version         Displays version information.\n\nExamples:\n  $ git-unsaved # Scans the current directory\n  $ git-unsaved -p ~/projects # Scans the projects directory\n  $ git-unsaved | less -r # Pipe the output to `less`\n\nDocumentation can be found at https://github.com/IonicaBizau/git-unsaved#readme.\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :clipboard: Example\n\n\n\nHere is an example how to use this package as library. To install it locally, as library, you can use `npm install git-unsaved` (or `yarn add git-unsaved`):\n\n\n\n```js\nconst gitUnsaved = require(\"git-unsaved\");\n\ngitUnsaved(`${__dirname}/..`, (err, data) =\u003e {\n\n    if (err) {\n        // Something went really wrong\n        return;\n    }\n\n    console.log(data);\n    // { result: { branch: 'master', ahead: 4, dirty: 3, untracked: 0, stashes: 0 },\n    //   messages:\n    //    [ 'You have \\u001b[1m4\\u001b[22m \\u001b[1munpushed commits\\u001b[22m.',\n    //      'You have \\u001b[1m3\\u001b[22m \\u001b[1mfiles you have to commit\\u001b[22m.' ],\n    //   path: '/home/.../git-unsaved' }\n\n    data.messages.forEach(c =\u003e {\n        console.log(`  ${c}`);\n    });\n\n    // =\u003e\n    // You have 4 unpushed commits.\n    // You have 3 files you have to commit.\n    console.log();\n}).on(\"directory\", path =\u003e {\n    console.log(`Scanning ${path}`)\n    // Scanning /home/.../git-unsaved/...\n}).on(\"end\", () =\u003e {\n    console.log(\"Done\")\n});\n```\n\n\n\n\n\n\n\n\n\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n\n\n\n\n## :memo: Documentation\n\nFor full API reference, see the [DOCUMENTATION.md][docs] file.\n\n\n\n\n\n\n\n\n\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n\n\n\n\n\n[license]: /LICENSE\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionicabizau%2Fgit-unsaved","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionicabizau%2Fgit-unsaved","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionicabizau%2Fgit-unsaved/lists"}