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

@debiao/ogit

v1.2.5

Published

oscar git commander

Readme

ogit

oscar git commander

一款命令行工具,用来在终端下进行移植commit,提交merge request等工作。

目前支持的命令有:

  • ogit cp [options]

    移植一个commit到指定分支,推送到fork仓库,并向公共仓库发起merge request

  • ogit mr [options]

    将分支推送到fork仓库,并向公共仓库发起merge request

  • ogit config [options]

    配置一些选项,比如公共仓库、fork仓库、gitlab账户等

  • ogit clean [options]

    删除ogit建立的分支

详细用法使用 ogit -h 查看:

Usage: ogit <command> [options]

命令:
  ogit cp      cherry-pick
  ogit mr      submit a merge request
  ogit config  config project
  ogit clean   clean temp branch

选项:
  --version   显示版本号                                                  [布尔]
  -h, --help  显示帮助信息                                                [布尔]

示例:
  ogit cp -c 6ce56e1d -t oscar -a           在分支oscar上创建新分支,将提交6ce56e1d移入该分支,然后将该
  zhouyongliang                             分支推送至fork仓库并发起mr,目标分支为公共仓库oscar,评审人为
                                            zhouyongliang
  ogit config -o public -f my               配置该项目公共仓库为public,fork仓库为my
  ogit config -k pwd -r                     配置公钥,私钥以及私钥密码,ssh协议使用
  C:\Users\yukai\.ssh\id_rsa -u
  C:\Users\yukai\.ssh\id_rsa.pub
  ogit config -g yukai -p pwd               配置gitlab账户为yukai,密码为pwd,http协议使用
  ogit mr -b test -t oscar -a               将分支test推送到fork仓库并作为mr源分支,目标分支为公共仓库os
  zhouyongliang                             car,评审人为zhouyongliang
  ogit clean                                清除ogit建立的分支

copyright 2019

安装

  1. 安装Node

  2. Node 安装完成后,在终端中执行 npm install -g @debiao/ogit,进行安装

  3. 使用命令 ogit update -g @debiao/ogit 进行更新

依赖

  • axios

  • jsonfile

  • nodegit

  • shelljs

  • yargs

  • pkg-updater

注意

  1. 在推送到远程之前会对commit的格式进行检查,如果不符合要求(/^((WIP:\s*)?(revert: |rework: )?(req|bug|perf|chore))( #\d+)+( )?:( ).+/),会尝试打开编辑器修改。

    使用 git config --global core.editor 指定你的默认编辑器:

    • notepad++:git config --global core.editor "'D:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

    • vscode:git config --global core.editor "'D:\tools\Microsoft VS Code Insiders\Code - Insiders.exe' --wait"

  2. 注意一定要使用 UTF-8 编码填写commit信息,否则会有编码问题