New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More โ†’
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc