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 🙏

© 2024 – Pkg Stats / Ryan Hefner

agit

v0.0.6

Published

add git checkout extra message

Downloads

3

Readme

agit

简化或增强一些git操作,例如:

  1. clone 代码参考时自动设置用户信息。
  2. checkout分支时添加备注。

安装:

npm install agit -g

使用

// 配置用户信息,在clone代码时会自动应用
agit config user.name=xxx [email protected]

// clone代码
agit clone https://github.com/swxy/test.git

.....

api

  1. checkout: 切换分支
agit checkout master -m "主干"  // 首次时最好加 -m 添加描述信息,后面可以不用再加
  1. del: 删除描述信息
agit del master // 删除master分支的描述信息, 注意不会删除分支

// 如果加了  -a 或者 --all, 表示删除所有描述信息
agit del -a
  1. ls: 展示所有的描述信息
agit ls

// 或者可以展示某一个分支的信息
agit ls branchName
  1. config: 配置一些基本信息
// 如果带有参数,则会保存配置, 参数和git原生有点差别 配置项名称和配置的值用 = 连接
agit config user.name=xxxx [email protected]

// 如果不带参数, 则应用已经保存的配置
agit config

// 支持 -l --list 展示已有配置
agit config -l

// -d --delete  删除配置项
agit config -d user.name // 上传user.name 配置

// -c --clear  清空所有配置项
agit config -c
  1. clone: 克隆代码库,同时会应用已有的配置
agit clone https://github.com/swxy/test.git

// 等价于以下操作
git clone https://github.com/swxy/test.git
cd test
agit config