npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gitcmmt

v1.0.2

Published

`gitcmmt` is a lightweight and user-friendly CLI tool designed to simplify and streamline your Git workflow. It automates common Git tasks like staging, committing, and pushing changes, while allowing flexibility through configurable options

Downloads

115

Readme

gitcmmt

gitcmmt is a lightweight and user-friendly CLI tool designed to simplify and streamline your Git workflow. It automates common Git tasks like staging, committing, and pushing changes, while allowing flexibility through configurable options.


Features

  • Automate Git Commands:
    • Automatically run git add . to stage changes.
    • Commit changes with customizable messages.
    • Push to the desired remote and branch.
  • Customizable Flags:
    • Skip specific steps (--skip-add, --skip-push).
    • Customize the branch (--branch) and remote (--remote).
    • Specify commit messages manually (--msg) or use quick templates (--dbg for "Bugs fixed").
  • Interactive Push Confirmation:
    • Ask for confirmation before pushing changes.
  • Auto-Push Option:
    • Automatically push changes with the --auto-push flag.

Installation

Install the package globally via npm:

npm install -g gitcmmt

Or run directly using npx:

npx gitcmmt

Usage

Basic Usage

Run the tool to stage, commit, and optionally push changes:

npx gitcmmt

Available Options

| Option | Description | Default | |-----------------|-----------------------------------------------------------------------------|--------------| | --skip-add | Skip the git add . step. | false | | --skip-push | Skip the git push step. | false | | --branch | Specify the branch to push changes to. | main | | --remote | Specify the remote repository. | origin | | --msg | Manually set a commit message. | Auto-generated | | --dbg | Use a quick commit message: "Bugs fixed". | false | | --auto-push | Automatically push changes without asking for confirmation. | false |


Examples

1. Default

Run the tool without --auto-push to get a prompt asking whether to push changes:

npx gitcmmt

2. Commit and Push to main

npx gitcmmt --msg "Updated README" --auto-push

3. Skip Push Step

npx gitcmmt --skip-push

4. Customize Remote and Branch

npx gitcmmt --remote upstream --branch develop

5. Use Quick Commit Message

npx gitcmmt --dbg

How It Works

  1. Stage Changes: Automatically stages all changes unless --skip-add is used.
  2. Commit Changes: Commits with a message provided by --msg, --dbg, or an auto-generated summary of changes.
  3. Push Changes: Pushes changes to the remote and branch specified, with an optional confirmation step unless --auto-push is enabled.

Contributing

We welcome contributions! If you have ideas for improvement or find bugs, feel free to open an issue or submit a pull request.


Support

If you encounter issues, please open an issue on GitHub.

Happy coding! 🚀