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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zjex/git-workflow

v0.4.1

Published

🚀 极简的 Git 工作流 CLI 工具,让分支管理和版本发布变得轻松愉快

Readme

@zjex/git-workflow


🎯 为什么选择 git-workflow?

在日常开发中,你是否经常遇到这些问题:

  • 🤔 每次创建分支都要手动输入一长串命名规范?
  • 😫 发布版本时总是忘记当前版本号是多少?
  • 📝 提交信息格式不统一,难以生成 CHANGELOG?
  • 🔄 删除分支时需要分别处理本地和远程?
  • 📋 团队成员的分支命名风格五花八门?
  • 💬 写 commit message 总是词穷,不知道怎么描述?

git-workflow 就是为解决这些痛点而生的。它提供了一套简洁的命令,让你专注于编码,而不是 Git 操作。

✨ 核心特性

🤖 AI 智能提交

  • 使用 AI 自动分析代码变更生成 commit message(2-3 秒完成)
  • 支持 GitHub Models(免费)、OpenAI、Claude、Ollama 等多种提供商
  • 遵循 Conventional Commits + Gitmoji 规范

🎯 规范分支管理

  • 自动生成带日期的规范分支名(feature/20260109-PROJ-123-add-login
  • 智能检测基础分支(main/master),支持自定义
  • 一键删除本地+远程分支,按最近使用排序

🏷️ 智能版本管理

  • 自动识别当前版本,交互式选择下一版本
  • 支持 semver + 预发布版本(alpha/beta/rc)
  • 自动检测 tag 前缀,支持多种命名规范

💾 可视化 Stash 管理

  • 清晰的交互式界面,告别难读的 git stash list
  • 支持预览、应用、创建分支等操作
  • 智能处理未跟踪文件

⚙️ 灵活配置

  • 支持全局配置(一次配置,所有项目生效)
  • 支持项目级配置(团队统一规范)
  • 零配置开箱即用,交互式菜单引导操作

⚡️ 快速开始

安装

# npm
npm install -g @zjex/git-workflow

# pnpm
pnpm add -g @zjex/git-workflow

# yarn
yarn global add @zjex/git-workflow

💡 安装后第一件事: 运行 gw init 创建全局配置,启用 AI commit 等功能!

三步开始使用

# 第 1 步:创建全局配置(只需一次)
gw init
# 选择 "全局配置(所有项目生效)"
# 配置 AI commit、分支规范等

# 第 2 步:在任意项目中使用
cd your-project
gw c                    # AI 自动生成 commit message
gw f                    # 创建规范的 feature 分支
gw t                    # 创建语义化版本 tag

# 第 3 步:享受高效的 Git 工作流 🎉

初次使用

# 1. 查看版本
gw --version

# 2. 创建全局配置(推荐,一次配置所有项目生效)
gw init
# 选择 "全局配置(所有项目生效)"
# 配置 AI commit、分支规范等

# 3. 运行交互式菜单
gw

# 4. 或直接使用命令
gw f    # 创建 feature 分支
gw c    # 提交代码(可使用 AI 自动生成)
gw t    # 创建 tag
gw d    # 删除分支
gw s    # 管理 stash

💡 提示: 创建全局配置后,所有项目都能使用 AI commit 等功能,无需重复配置!

30 秒上手示例

# 📋 交互式菜单(推荐新手)
gw

 ███████╗     ██╗███████╗██╗  ██╗
 ╚══███╔╝     ██║██╔════╝╚██╗██╔╝
   ███╔╝      ██║█████╗   ╚███╔╝
  ███╔╝  ██   ██║██╔══╝   ██╔██╗
 ███████╗╚█████╔╝███████╗██╔╝ ██╗
 ╚══════╝ ╚════╝ ╚══════╝╚═╝  ╚═╝

  git-workflow v0.2.16

? 选择操作:
  [1] ✨ 创建 feature 分支      gw f
  [2] 🐛 创建 hotfix 分支       gw h
  [3] 🗑️  删除分支               gw d
  [4] 📝 提交代码               gw c
  [5] 🏷️  创建 tag               gw t
  ...

# ✨ 创建 feature 分支
gw f
? 请输入 Story ID (可跳过): PROJ-123
? 请输入描述: add-user-login
✔ 分支创建成功: feature/20260109-PROJ-123-add-user-login

# 📝 AI 智能提交
gw c
✔ AI 生成完成

AI 生成的 commit message:
✨ feat(auth): 添加用户登录功能
────────────────────────────────────────
? 使用这个 commit message?
❯ ✅ 使用

✔ 提交成功

# 🏷️ 创建 tag
gw t
? 选择版本类型:
❯ patch   → v1.2.1
  minor   → v1.3.0
  major   → v2.0.0

✔ Tag 创建成功: v1.2.1

📚 完整文档

想了解更多功能和用法?查看我们的完整文档:

🛠️ 开发与贡献

想要参与开发或了解更多技术细节?查看我们的开发文档:

快速开发

# 克隆仓库
git clone https://github.com/iamzjt-front-end/git-workflow.git
cd git-workflow

# 安装依赖
npm install

# 开发模式
npm run dev

# 运行测试
npm test

# 构建
npm run build

🤝 贡献

欢迎提交 Issue 和 Pull Request!在提交 PR 之前,请确保:

  1. 代码通过 TypeScript 类型检查
  2. 遵循现有的代码风格
  3. 添加必要的测试用例
  4. 更新相关文档

详细贡献指南请查看:贡献指南

📄 License

MIT License © 2026 zjex

🙏 致谢

感谢所有贡献者和使用者的支持!