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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@souvik666/gic

v1.1.4

Published

![9320](https://github.com/user-attachments/assets/512fbc55-8380-41a7-8ffe-faf3fc11ed45)

Readme

9320

GIC (Git Commit Automation Script) - Command Line Tool

Overview

GIC is a powerful, user-friendly Git commit automation tool that simplifies and customizes your Git commit process. With GIC, you can easily automate Git commits with detailed messages, custom tags, and much more. It enhances the commit workflow, especially for teams working on feature branches or managing multiple repositories.

Features

  • Custom Commit Messages: Add a custom commit message or use the default tags for changes.
  • Commit Preview: See a preview of your commit message before applying it.
  • Tag Customization: Customize the commit tags (Updated, Added, Removed, etc.) with your own labels.
  • Dry Run Mode: Preview commits without actually committing any changes.
  • Cross-platform Support: Fully supports Linux, macOS, and Windows.
  • Integrates with Git: Automates Git commands such as git add, git commit, and git push.

Installation

Prerequisites

Ensure you have Node.js and npm installed on your system.

Global Installation

To install gic globally, run:

npm install -g @souvik666/gic

This will allow you to run the gic command globally from anywhere in your terminal.

Local Installation

If you want to install gic for a specific project, run:

npm install @souvik666/gic --save-dev

Then, you can use npx to execute the command without needing to install it globally:

npx gic --help

Usage

Basic Command

To use GIC, run the following command to see the help options:

gic --help

Commit Changes with Custom Message

To make a commit with a custom message:

gic -m "Custom commit message"

This will add all the changes, generate a commit message with the custom content at the top, and then display a preview of the commit before applying it.

Dry Run Mode

You can perform a "dry run" to preview the commit without actually committing:

gic --dry-run

This will show the commit preview without applying any changes.

Default Commit Message Tags

By default, GIC uses the following commit message tags:

  • 🔧 UPDATED for modified files.
  • ✨ ADDED for new files.
  • 🗑️ REMOVED for deleted files.
  • 📄 NEW for new, untracked files.
  • 🔄 OTHER for other changes.

These tags can be customized in the gic.config.json file.

Configuration

Customizing Commit Tags

To customize the commit message tags (e.g., change 🔧 UPDATED to 🔨 CHANGED), create a gic.config.json file in your project root:

{
  "modified": "🔨 CHANGED",
  "added": "✨ NEW FEATURE",
  "deleted": "🗑️ DELETED",
  "new": "📄 NEW FILE",
  "other": "🔄 ALTERED"
}

GIC will automatically load the tags from this configuration file if it exists.

Example Commit Message

Here’s an example of a generated commit message:

(#123) [2025-02-05 14:30:00] Fixed login issue
✨ ADDED: src/components/Login.js
🔧 UPDATED: src/api/auth.js
🗑️ REMOVED: src/utils/deprecatedFunction.js

Detailed Breakdown:

  • The issue number (#123) is automatically detected from the branch name.
  • The commit message timestamp (2025-02-05 14:30:00) is dynamically added.
  • Each change is tagged with customizable icons like ✨ ADDED, 🔧 UPDATED, etc.

Advanced Options

  • Dry Run: Preview your changes before actually committing them:

    gic --dry-run
  • Custom Message: Add a custom commit message:

    gic -m "Fixed login issue"
  • No Changes Detected: If there are no changes to commit, the tool will display:

    No changes to commit.

Troubleshooting

Common Errors

  • Permission Denied: If you're unable to install the package, ensure you're running with the appropriate permissions or use sudo for global installations.
  • Command Not Found: Ensure that gic.sh is marked as executable and properly linked in the bin section of your package.json.
chmod +x gic.sh

FAQ

1. How do I install GIC globally?

Run the following command to install GIC globally:

npm install -g @souvik666/gic

2. Can I customize the commit tags?

Yes, you can customize the commit tags by modifying the gic.config.json file in your project.

3. How do I test my changes before committing?

Use the --dry-run option to preview your commit before it’s made:

gic --dry-run

Contributing

We welcome contributions to GIC! If you would like to contribute, please fork the repository and submit a pull request. Make sure to follow the code style and write tests for new features.

License

GIC is licensed under the ISC License.

Related Tools

  • Git: A distributed version control system.

  • Node.js: JavaScript runtime built on Chrome's V8 engine.

  • npm: Node.js package manager.