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

git-geass

v0.2.3

Published

🛠️ Some quick actions for git.

Readme

git-geass

npm version npm downloads bundle JSDocs License

一些快捷的 Git 交互式操作。

名称灵感来自《反叛的鲁路修》(code-geass)。

English | 中文

安装

pnpm i -g git-geass
# npm i -g git-geass
# yarn add -g git-geass

使用

gitg -h
# 或
git-geass -h

Clean Branch

交互式清理旧分支。

# 清理所有非当前分支
gitg clean branch

# 清理 10 天前的分支
gitg clean branch -d 10

# 清理已合并到 master 的分支
gitg clean branch -m master

# 清理已合并到 master 或 main 的分支
gitg clean branch -m master -m main

# 清理远程分支(向 origin 推送 `--delete`)
gitg clean branch -r

Clean Repo

扫描目录中的无用 Git 仓库并清理。

判定标准:空仓库(无提交)、超过 180 天无提交、或无 remote。

# 扫描当前目录,交互式选择删除无用仓库
gitg clean repo

# 扫描指定目录
gitg clean repo /path/to/repos

# 自定义闲置阈值(例如 90 天)
gitg clean repo -d 90

# 仅预览,不执行删除
gitg clean repo --dry-run

Update Repo

强制更新 Git 仓库:清理未跟踪文件、暂存更改、然后拉取。

# 更新当前仓库(clean + stash + pull)
gitg update

# 强制清理(而非 dry-run)后拉取
gitg update -f

# 递归更新当前目录下的所有 Git 仓库
gitg update -r

# 强制 + 递归
gitg update -f -r

Amend Date

修改最后一次提交的作者日期和提交者日期。

gitg amend -d
# 交互式输入日期(如 2024-01-01 12:00:00)

Amend Author

修改当前分支中所有提交的作者信息。

gitg amend -a
# 或
gitg amend --author
# 交互式输入作者名和邮箱

赞助

许可证

MIT LICENSE @2024-PRESENT @YunYouJun