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

@damon945/git-quicker

v3.0.2

Published

一个简化和增强 Git 操作的 TypeScript 命令行工具,让您的 Git 工作流更加高效!

Readme

gIt-quicker 🚀

一个简化和增强 Git 操作的 TypeScript 命令行工具,让您的 Git 工作流更加高效!

npm version License: MIT TypeScript

✨ 功能特性

  • 🎯 快捷指令管理:自定义 Git 命令快捷方式,支持一键执行
  • 🌿 智能分支管理:分支描述、批量删除、创建分支、工作树显示
  • 📝 快速提交:交互式提交类型选择,支持修改最后一次提交
  • 🌳 工作树管理:创建、删除、查看多个工作树
  • 🍒 Cherry-pick 支持:交互式选择提交进行 cherry-pick
  • 🎨 美观输出:彩色终端输出,清晰易读
  • ⚡ 不阻塞终端:提交开始后立即返回,可继续其他操作
  • 🔍 完整透明度:显示 lint 检查过程,就像直接使用 git commit

📦 安装

# 全局安装
npm install -g git-quicker

# 或者使用 yarn
yarn global add git-quicker

🚀 快速开始

# 初始化配置并同步分支信息
gq init

# 查看所有快捷指令
gq list

# 设置快捷指令
gq set gco "git checkout"
gq set gst "git status"

# 直接执行快捷指令
gq gco main
gq gst

# 交互式提交
gq commit

📋 主要命令

快捷指令管理

gq list                    # 查看所有快捷指令
gq set <key> <command>     # 设置快捷指令
gq remove <key>            # 删除快捷指令
gq <key> [args...]         # 直接执行快捷指令

快速提交

gq commit                  # 交互式提交,支持类型选择
gq c                       # 简写形式
gq amend                   # 修改最后一次提交

提交流程特性:

  • 🔍 显示 lint 检查过程:完整显示项目配置的 pre-commit 钩子执行过程
  • 不阻塞终端:提交开始后立即返回,可继续其他操作
  • 🎯 原生体验:就像直接使用 git commit 一样的透明度

分支管理

gq gbr                     # 显示所有分支和描述(包含工作树路径)
gq bdesc "分支描述"         # 设置当前分支描述
gq branch-desc <branch> "描述"  # 设置指定分支描述
gq bd <branch1> <branch2>  # 批量删除分支(带确认)
gq create-branch           # 交互式创建分支
gq switch-branch           # 交互式切换分支

工作树管理

gq wt -l                   # 显示所有工作树
gq wt -a                   # 添加新工作树
gq wt -r                   # 删除工作树
gq wt -p                   # 清理工作树引用

Cherry-pick 操作

gq cp -p                   # 执行 cherry-pick
gq cp -c                   # 继续 cherry-pick(解决冲突后)
gq cp -s                   # 跳过当前提交
gq cp -a                   # 取消 cherry-pick 操作
gq cp -b                   # 批量 cherry-pick

🎨 提交类型

支持标准的提交类型:

  • feat - 新功能
  • fix - 修复bug
  • docs - 文档更新
  • style - 代码格式调整
  • refactor - 重构代码
  • test - 测试相关
  • chore - 构建/工具链
  • perf - 性能优化
  • ci - CI/CD相关
  • build - 构建系统
  • revert - 回滚提交

📁 默认快捷指令

工具预设了13个常用快捷指令:

| 快捷键 | Git 命令 | 描述 | |--------|----------|------| | gco | git checkout | 切换分支或恢复文件 | | gst | git status | 查看工作区状态 | | gaa | git add . | 添加所有文件到暂存区 | | gcm | git commit -m | 提交更改 | | gps | git push | 推送到远程仓库 | | gpl | git pull | 从远程仓库拉取 | | gbr | git branch -v | 查看分支详情 | | gbd | git branch -d | 删除分支 | | glog | git log --oneline -10 | 查看最近10条提交 | | gdiff | git diff | 查看文件差异 | | gstash | git stash | 暂存工作区更改 | | gpop | git stash pop | 恢复暂存的更改 | | greset | git reset --hard HEAD | 重置到最新提交 |

🔧 配置文件

配置文件存储在用户主目录下:

  • 快捷指令配置~/.quicker-git/shortcuts.json
  • 分支描述~/.quicker-git/branch-descriptions.json
  • 配置备份~/.quicker-git/backup/ (自动备份)
# 查看配置信息
gq config

# 卸载工具(会备份配置)
gq uninstall

📚 完整文档

查看 docs 目录获取完整文档:

🛠 开发

# 克隆项目
git clone <repository-url>
cd quicker-git

# 安装依赖
npm install

# 开发模式运行
npm run dev

# 构建项目
npm run build

# 运行测试
npm test

# 本地安装进行测试
npm link

🤝 贡献

欢迎提交 Issue 和 Pull Request!

  1. Fork 项目
  2. 创建功能分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m 'feat: add amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 创建 Pull Request

📄 许可证

MIT License - 详见 LICENSE 文件

🙏 致谢

本项目灵感来源于 git-quicker,使用 TypeScript 重新实现并增强了功能。


让 Git 操作更简单,让开发更高效! 🎉