All Projects β†’ IonicaBizau β†’ Git Unsaved

IonicaBizau / Git Unsaved

Licence: mit
πŸ”Ž Scan your projects directory for dirty git repositories.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Git Unsaved

Gitauthors
✍️ Get a quick summary of a repo's authors.
Stars: ✭ 50 (-40.48%)
Mutual labels:  command-line, repository
Bartlett
A simple Jenkins command line client to serve your needs.
Stars: ✭ 81 (-3.57%)
Mutual labels:  command-line
As3 Universal Analytics
Google Universal Analytics for AS3
Stars: ✭ 73 (-13.1%)
Mutual labels:  command-line
Unix Text Commands
Unix Text Processing Command Reference
Stars: ✭ 78 (-7.14%)
Mutual labels:  command-line
Navi
An interactive cheatsheet tool for the command-line
Stars: ✭ 10,055 (+11870.24%)
Mutual labels:  command-line
Alfred Cheat
Manage your self-defined cheat sheets & knowledge base in Alfred
Stars: ✭ 79 (-5.95%)
Mutual labels:  command-line
Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (-13.1%)
Mutual labels:  command-line
Nps Utils
Utilities for http://npm.im/nps (npm-package-scripts)
Stars: ✭ 83 (-1.19%)
Mutual labels:  command-line
Sqlite3 To Mysql
Transfer data from SQLite to MySQL
Stars: ✭ 79 (-5.95%)
Mutual labels:  command-line
Pilgo
Configuration-based dotfiles manager
Stars: ✭ 78 (-7.14%)
Mutual labels:  command-line
Oh
A new Unix shell.
Stars: ✭ 1,206 (+1335.71%)
Mutual labels:  command-line
Ibcolortool
List all colors in Storyboards and XIB files
Stars: ✭ 76 (-9.52%)
Mutual labels:  command-line
Window Size
Reliable way to to get the height and width of the terminal/console in a node.js environment.
Stars: ✭ 79 (-5.95%)
Mutual labels:  command-line
Git Repo Watcher
A simple bash script to watch a git repository and pull upstream changes if needed.
Stars: ✭ 73 (-13.1%)
Mutual labels:  repository
Perun
A command-line validation tool for AWS Cloud Formation that allows to conquer the cloud faster!
Stars: ✭ 82 (-2.38%)
Mutual labels:  command-line
Nexmo Cli
Nexmo CLI (Command Line Interface)
Stars: ✭ 73 (-13.1%)
Mutual labels:  command-line
Tuf
A framework for securing software update systems
Stars: ✭ 1,202 (+1330.95%)
Mutual labels:  repository
Tsv Utils
eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
Stars: ✭ 1,215 (+1346.43%)
Mutual labels:  command-line
Opaline
NextJS for CLI tools
Stars: ✭ 84 (+0%)
Mutual labels:  command-line
Sampler
Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
Stars: ✭ 9,203 (+10855.95%)
Mutual labels:  command-line

$ git-unsaved

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads Get help on Codementor

Buy Me A Coffee

Scan your projects directory for dirty git repositories.

Features

  • πŸš€ Very fast–gives feedback while scanning the directories.
  • ⚑️ Clean output
  • πŸ—Ό Checks if the local commits/branches are pushed to the remote
  • πŸ‘€ Detects uncommited changes (new files, modified, deleted etc)
  • πŸ’« Lovely output

git-unsaved

☁️ Installation

You can install the package globally and use it as command line tool:

# Using npm
npm install --global git-unsaved

# Using yarn
yarn global add git-unsaved

Then, run git-unsaved --help and see what the CLI tool can do.

$ git-unsaved --help
Usage: git-unsaved [options]

Scan your projects directory for dirty git repositories.

Options:
  -p, --path <path>     A custom folder path (default: the current working
                        directory).
  -r, --relative-paths  Display the relative paths.
  -v, --version         Displays version information.
  -h, --help            Displays this help.

Examples:
  $ git-unsaved # Scans the current directory
  $ git-unsaved -p ~/projects # Scans the projects directory
  $ git-unsaved | less -r # Pipe the output to `less`

Documentation can be found at https://github.com/IonicaBizau/git-unsaved#readme.

πŸ“‹ Example

Here is an example how to use this package as library. To install it locally, as library, you can do that using npm (or yarn):

# Using npm
npm install --save git-unsaved

# Using yarn
yarn add git-unsaved
const gitUnsaved = require("git-unsaved");

gitUnsaved(`${__dirname}/..`, (err, data) => {

    if (err) {
        // Something went really wrong
        return;
    }

    console.log(data);
    // { result: { branch: 'master', ahead: 4, dirty: 3, untracked: 0, stashes: 0 },
    //   messages:
    //    [ 'You have \u001b[1m4\u001b[22m \u001b[1munpushed commits\u001b[22m.',
    //      'You have \u001b[1m3\u001b[22m \u001b[1mfiles you have to commit\u001b[22m.' ],
    //   path: '/home/.../git-unsaved' }

    data.messages.forEach(c => {
        console.log(`  ${c}`);
    });

    // =>
    // You have 4 unpushed commits.
    // You have 3 files you have to commit.
    console.log();
}).on("directory", path => {
    console.log(`Scanning ${path}`)
    // Scanning /home/.../git-unsaved/...
}).on("end", () => {
    console.log("Done")
});

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.

  2. For bug reports and feature requests, open issues. πŸ›

  3. For direct and quick help, you can use Codementor. πŸš€

πŸ“ Documentation

For full API reference, see the DOCUMENTATION.md file.

πŸ˜‹ How to contribute

Have an idea? Found a bug? See how to contribute.

πŸ’– Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this 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).

However, 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:

  • Starring and sharing the projects you like πŸš€

  • Buy me a bookβ€”I love books! I will remember you after years if you buy me one. 😁 πŸ“–

  • PayPalβ€”You can make one-time donations via PayPal. I'll probably buy a coffee tea. 🍡

  • Support me on 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).

  • Bitcoinβ€”You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6

Thanks! ❀️

πŸ“œ License

MIT © Ionică Bizău

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].