# 使用 Homebrew, MacPorts, Nix, scoop, winget 安装 jj

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

## 安装

```sh
sudo av install brew:jj
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jj
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jj
```

  证据: MacPorts ports tree: textproc/jj/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jj
```

  证据: nixpkgs package indexes: pkgs/by-name/jj/jj/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/jj
```

  证据: Scoop official bucket manifest trees: bucket/jj.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id jj-vcs.jj -e
```

  证据: Windows Package Manager source index: jj-vcs.jj from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:jj
- **软件包管理器:** Homebrew
- **版本:** 0.43.0
- **来源摘要:** Git-compatible distributed version control system
- **主页:** <https://github.com/jj-vcs/jj>
- **仓库:** <https://github.com/jj-vcs/jj>
- **最后更新:** 2026-07-02T04:05:37Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jj (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Jujutsu, invoked as `jj`, is a Git-compatible distributed version-control system that rethinks the user model around changes, automatic working-copy commits, an operation log, and undo. Its repository describes a storage abstraction that can use Git repositories as a backend while also drawing on ideas from Mercurial, Sapling, Darcs, and Google's Piper/CitC design.

### 项目历史

Martin von Zweigbergk says in the project README that he started Jujutsu as a hobby project in late 2019, and that it later became his full-time work at Google with help from other Googlers while remaining a community-supported open-source project. The README also records that the repository moved to the `jj-vcs` GitHub organization in December 2024.

The design grew around a few deliberately non-Git ideas: the working copy is represented as a commit, conflicts are first-class objects, operations are logged, and descendants are automatically rebased after rewrites. At the same time, the Git backend lets users keep GitHub and GitLab-oriented collaboration paths.

### 采用历史

Adoption has been driven by command-line developers who want Git interoperability without Git's index-centric workflow. The input package metadata records packaging across Homebrew, MacPorts, Nix, Scoop, and Winget, which is notable for a young VCS because it gives users a direct path on Unix-like and Windows systems.

The README notes that core developers use Jujutsu to develop Jujutsu on GitHub, turning the project into a self-hosting example for its own workflow.

### 使用方式

`jj` is used as a daily version-control CLI: users initialize or colocate repositories with Git, make changes that are automatically snapshotted, rewrite and split changes, inspect history with revsets/templates, push through Git remotes, and use the operation log to understand or undo repository operations.

The tool is especially interesting for stacked-change workflows because descendants are automatically rebased when earlier changes are edited, and conflicts can be carried as repository state instead of forcing immediate textual resolution.

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

For package nerds, `jj` is one of the rare modern VCS packages that is not merely a Git porcelain: it has its own data model while preserving Git-backed distribution. That makes the package a useful bellwether for how far a new developer tool can spread through standard package managers before a 1.0 line.

Its Rust implementation, Git compatibility, operation log, and self-hosting use make it a high-signal package in the developer-tools ecosystem.

### 时间线

- 2019: Martin von Zweigbergk starts Jujutsu as a hobby project.
- 2021: The README says Martin had used `jj` almost exclusively to develop the project itself since early January.
- 2023: Martin presents Google's plans for Jujutsu at Git Merge 2022, referenced by the README news section.
- 2024: Version 0.14 deprecates `jj checkout` and `jj merge`; version 0.24 adds `jj file annotate`; the repository moves to the `jj-vcs` organization.
- 2026: The changelog records 0.42.0 on 2026-06-04.

### Related projects

- The official README names Git, Mercurial, Sapling, Darcs, Breezy, and Piper/CitC as related systems or design influences. Its package neighborhood also includes `jjui`, a terminal UI built specifically for interacting with Jujutsu repositories.

### 来源

- Project README, Jujutsu documentation, working-copy documentation, changelog, and Homebrew formula metadata.


## 安全说明

没有找到 jj 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.jjconfig.toml, $XDG_CONFIG_HOME/jj/config.toml, ~/.config/jj/config.toml, $XDG_CONFIG_HOME/jj/conf.d/*.toml, ~/.config/jj/conf.d/*.toml, /etc/jj/config.toml, /etc/jj/conf.d/*.toml
- Windows: %APPDATA%\jj\config.toml
## 其他软件包管理器记录

- Nix - jj: normalized package name match | nixpkgs package indexes: pkgs/by-name/jj/jj/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - jj: normalized package name match | MacPorts ports tree: textproc/jj/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/jj: normalized package name match | Scoop official bucket manifest trees: bucket/jj.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - jj-vcs.jj: normalized package name match | Windows Package Manager source index: jj-vcs.jj from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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