You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

git-intent

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-intent

Git workflow tool for intentional commits — define your commit intentions first for clearer, more atomic changes.

0.0.9
npmnpm
Version published
Weekly downloads
2
-77.78%
Maintainers
3
Weekly downloads
 
Created
Source

git-intent

npm version

git-intent is a Git workflow tool designed for creating intentional commits.

Why git-intent?

Most developers write code first and craft commit messages as an afterthought. This practice often leads to large, unclear, and unfocused commits. Inspired by the Test-Driven Development (TDD) approach, git-intent encourages defining clear intentions before you begin coding, transforming your commit process into a proactive part of development.

By focusing on your intentions upfront, git-intent enables you to:

  • Maintain a clean, easily navigable commit history
  • Clearly communicate your development intentions
  • Prevent scope creep and maintain atomic changes
  • Enhance collaboration and project maintainability

Special thanks to Joohoon Cha for introducing the Intent-Driven Git Workflow concept.

Quick Start

# 1. Install Using NPM
npm install -g git-intent

# 2. Add an intention
git intent add "feat: create user login page"

# 3. Start working
git intent start

Requirements

  • Git (>= 2.0)
  • Node.js (>= 18)

Installation

Using NPM

npm install -g git-intent

Updating

# NPM
npm update -g git-intent

# Check version
git intent --version

Usage

Basic Commands

# Add intentions
git intent add "feat: implement login page"
git intent add  # opens editor

# List and manage
git intent list    # show all intentions
git intent show    # show current intention
git intent start   # start working (interactive)
git intent start <id>  # start specific intention

# Complete or modify
git intent commit  # commit current intention
git intent commit -m "Additional message"  # with extra details
git intent cancel  # cancel current intention
git intent reset   # clear all intentions

# Advanced
git intent divide  # split intention (interactive)
git intent divide <id>  # split specific intention
git intent drop  # remove intention (interactive)
git intent drop <id>    # remove specific intention

FAQ

Q: Why define intentions before coding?
A: Clearly defined intentions help you stay focused, create more meaningful commits, and improve collaboration and readability of commit history.

Q: Where are my intentions stored? Are they shared or committed to Git?
A: Intentions are stored locally in your repository's .git directory and are not shared or committed. They remain private unless explicitly shared.

Contributing

We warmly welcome contributions from the community. See our detailed guide:

CONTRIBUTING.md

License

MIT OffLegacyLICENSE

Keywords

git

FAQs

Package last updated on 14 Apr 2025

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