# 使用 Homebrew, apt, dnf 安装 sugarjar

查看 sugarjar 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:sugarjar
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sugarjar
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sugarjar
```

  证据: Debian stable package indexes: sugarjar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install sugarjar
```

  证据: Fedora Rawhide package metadata: sugarjar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:sugarjar
- **软件包管理器:** Homebrew
- **版本:** 3.0.1
- **来源摘要:** Helper utility for a better Git/GitHub experience
- **主页:** <https://github.com/jaymzh/sugarjar/>
- **仓库:** <https://github.com/jaymzh/sugarjar>
- **最后更新:** 2026-06-19T18:44:54Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sj (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.0.1
## 项目历史与用法

SugarJar is a Ruby command-line helper for Git plus GitHub and GitLab workflows, installed as `sj`. It belongs to the tradition of developer workflow wrappers that package managers carry because they encode a maintainer's preferred Git hygiene into a reproducible CLI.

### 项目历史

The official README says SugarJar is inspired by Arcanist and Facebook's JellyFish, bringing features from Phabricator-style workflows to GitHub. Its focus is practical repository work: smarter clones, branch cleanup, stacked branches, smart pull requests, pre-push checks, and safer force-push behavior.

The official changelog records a 1.0.0 release in October 2023, later 2.x releases that removed `hub` support and required Ruby 3.2, and 3.x releases adding GitLab use cases.

### 采用历史

The Homebrew input records SugarJar in Homebrew, Debian, Fedora, and Ubuntu package sets. That is modest but meaningful adoption for a personal workflow tool: it has escaped a single checkout and become something downstream packagers can build and ship.

### 使用方式

SugarJar's README documents commands such as `sj smartclone`, `sj bclean`, `sj smartlog`, `sj smartpush`, and `sj fpush`. It wraps common Git and forge operations while relying on standard tools such as Ruby, `git`, `gh`, or `glab`.

### 为什么软件包爱好者会关心

Package nerds care about SugarJar because it shows a common packaging pattern: a small opinionated wrapper around ubiquitous tools. Its value is not replacing Git, but standardizing repeated contributor tasks enough that users want it installed from the same package manager as Git itself.

### 时间线

- 2020: Changelog entries show early 0.0.x development with smart pull-request and branch-cleanup features.
- 2023: Version 1.0.0 adds feature-prefix support and defaults to the GitHub CLI.
- 2024: Version 1.1.1 relaxes Ruby requirements for easier packaging.
- 2025: Version 2.x removes `hub` support and requires Ruby 3.2 or later.
- 2026: Version 3.x adds GitLab support.

### Related projects

- The README names Arcanist and JellyFish as inspirations, and documents `gh` and `glab` as forge CLI dependencies.

### 来源

- Input package-manager data: source_facts.package-manager
- Official README: https://github.com/jaymzh/sugarjar#readme
- Official changelog: https://github.com/jaymzh/sugarjar/blob/main/CHANGELOG.md
- Official releases: https://github.com/jaymzh/sugarjar/releases


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - sugarjar - 2.0.1-3: normalized package name match | Debian stable package indexes: sugarjar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git/GitHub helper script | https://github.com/jaymzh/sugarjar
- Ubuntu apt - sugarjar - 1.1.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: sugarjar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git/GitHub helper script | https://github.com/jaymzh/sugarjar
- dnf - sugarjar - 3.0.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: sugarjar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A git/github helper utility | http://www.github.com/jaymzh/sugarjar


## Combined YAML source

View the package source record on GitHub. [combined/sugarjar.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sugarjar.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
