Socket
Book a DemoInstallSign in
Socket

@gitcm/cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitcm/cli

An opinionated git commits message helper.

0.1.9
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

gitcm

gitcm is an opinionated git commits message helper.

Usage

npx @gitcm/cli

Installation

You can choose to install globally so that you can use the gitcm or git-commit commands. They are equivalent to npx @gitcm/cli.

npm install -g @gitcm/cli

More Examples

For example, you can use the following command:

gitcm init "init commit"

Which will execute the following command:

git commit -m ":tada: init: init commit"

We provide an interactive cli tool.

$ gitcm
┌  @gitcm/cli - v0.1.4
│
●  Config file found in C:\Users\Jannchie\.config\gitcm\config.json
│
◇  What is the commit type? (required)
│  ✨ feat
│
◇  What is the commit scope? (optional)
│  test
│
◇  What is the commit body? (required)
│  this is a commit message
│
◇  Your commit command is ─────────────────────────────────────────╮
│                                                                   │
│  git commit -m ":sparkles: feat(test): this is a commit message"  │
│                                                                   │
├───────────────────────────────────────────────────────────────────╯

You can also set the type, scope and body with command-line arguments:

# git commit -m ":sparkles: feat(test): test commit"
gitcm feat test "test commit" 

# git commit -m ":sparkles: feat: test commit"
gitcm feat "test commit" 

We provide an AI-powered commit message generator.

# Generate a commit message with OpenAI ChatGPT API
gitcm -a

You can find help with the following command:

gitcm --help

Configuration

When you use this command for the first time, it writes the configuration in ~/.config/gitcm/config.json.

You can change the configuration by editing this file.

License

MIT

Keywords

git

FAQs

Package last updated on 10 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.