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

temp-npm-tool

v1.0.0

Published

作为内外网的沟通工具

Readme

git 常用代码合集

  1. Git init:初始化一个仓库

  2. Git add 文件名称:添加文件到Git暂存区

  3. Git commit -m “message”:将Git暂存区的代码提交到Git中;

  4. Git checkout 文件名:将单个文件代码回滚到上次提交的版本;此回滚是先在Git暂存区中查找,如果暂存区中有则回滚暂存区中的代码;如果暂存区中没有则再去Git上回滚该代码;

  5. Git status:查看代码的修改情况;

  6. cat 文件名:查看该文件的内容;

  7. Git log:查看Git提交版本的所有信息,后提交的在上面;

  8. git log --pretty=oneline:查看Git版本提交信息,值只显示版本唯一HEAD和提交备注信息(是Git log的简版),后提交的在上面;

  9. Git reset --hard HEAD^:回滚到上一个版本

  10. Git reset --hard HEAD:回滚到指定的版本,HEAD对应为版本的唯一ID号(HEAD ID可以只写前6位)。

  11. Git reflog 如果在回退以后又想再次回到之前的版本,git reflog 可以查看所有分支的所有操作记录(包括commit和reset的操作),包括已经被删除的commit记录,git log则不能察看已经删除了的commit记录。

  12. git clone [url]:下载一个项目和它的整个代码历史;

  13. git config 设置提交代码时的用户信息

  14. git rm

$ git rm [file1] [file2] ... 删除工作区文件,并且将这次删除放入暂存区

  1. 其他

列出所有本地分支$ git branch

列出所有远程分支$ git branch -r

列出所有本地分支和远程分支$ git branch -a

新建一个分支,但依然停留在当前分支$ git branch [branch-name]

新建一个分支,并切换到该分支$ git checkout -b [branch]

新建一个分支,指向指定commit $ git branch [branch] [commit]

新建一个分支,与指定的远程分支建立追踪关系

$ git branch --track [branch] [remote-branch]

切换到指定分支,并更新工作区$ git checkout [branch-name]

切换到上一个分支$ git checkout -b

建立追踪关系,在现有分支与指定的远程分支之间

$ git branch --set-upstream [branch] [remote-branch]

合并指定分支到当前分支

$ git merge [branch]

选择一个commit,合并进当前分支

$ git cherry-pick [commit]

删除分支$ git branch -d [branch-name]

删除远程分支

$ git push origin --delete [branch-name]

$ git branch -dr [remote/branch]