# legit を Homebrew, apt, MacPorts, Nix, scoop でインストール

legit のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:legit
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install legit
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install legit
```

  証拠: MacPorts ports tree: devel/legit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install legit
```

  証拠: Debian stable package indexes: legit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#legit
```

  証拠: nixpkgs package indexes: pkgs/by-name/le/legit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/legit
```

  証拠: Scoop official bucket manifest trees: bucket/legit.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:legit
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/legit>
- **バージョン:** 1.2.0.post0
- **ソース概要:** Command-line interface for Git, optimized for workflow simplicity
- **ホームページ:** <https://frostming.github.io/legit/>
- **リポジトリ:** <https://github.com/frostming/legit>
- **上流ドキュメント:** <https://frostming.github.io/legit>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/cb/e4/8cc5904c486241bf2edc4dd84f357fa96686dc85f48eedb835af65f821bf/legit-1.2.0.post0.tar.gz>
- **最終更新:** 2026-07-22T10:44:30Z
- **生成日時:** 2026-07-25T07:20:51+00:00

## 実行可能ファイル

- legit (cli)
- legit (エイリアス)

## 依存関係

- python@3.14

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-07-25
- マネージャ版: 1.2.0.post0
- マネージャ更新日: 2026-07-22
- ローカルデータ: OK
- 上流リポジトリ: https://frostming.github.io/legit/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

Legit is a small Python CLI that wraps common Git branch workflows in human-oriented commands such as `sync`, `switch`, `publish`, and `unpublish`.

### プロジェクトの歴史

Kenneth Reitz created Legit in the early 2010s as part of his broader 'for Humans' style of developer tools. The project translated parts of GitHub for Mac's opinionated branch workflow back to the command line: auto-stashing during branch switches, simple publish/unpublish commands, and a sync operation that handled fetch, merge or rebase, push, and unstash.

The maintained package identity later centered on Frost Ming's `frostming/legit` repository and `frostming.github.io/legit` documentation. PyPI metadata for the package lists Kenneth Reitz among maintainers and authorship, while the repository topic and README preserve the GitHub-for-Mac inspiration.

### 採用の歴史

Legit spread through Python packaging first, with PyPI releases beginning in 2011 and later system packaging through Homebrew, Debian, Ubuntu, MacPorts, Nix, and Scoop. Its appeal peaked in the period when Git workflows were still intimidating to many new developers and GUI clients were influencing command-line ergonomics.

### 使われ方

Package users install the `legit` command and run it inside Git repositories. Its commands are deliberately narrower than raw Git: switch branches while preserving worktree changes, sync a published branch, publish or unpublish branches, and list branch publication status.

### パッケージ好きにとっての重要性

Legit is package-nerd history because it captures a particular moment in Git tooling: instead of exposing every Git feature, it offered a tiny vocabulary for a common feature-branch workflow. It also sits in the lineage of Kenneth Reitz's Python packaging era, where branding, API empathy, and CLI polish were treated as part of open-source distribution.

### タイムライン

- 2011-06-27: PyPI recorded the 0.0.1 source distribution upload.
- 2012-03-25: PyPI recorded the 0.1.0 release page for Legit.
- 2019-12-10: GitHub releases listed v1.2.0 for `frostming/legit`.
- 2020-03-14: PyPI recorded the 1.2.0.post0 wheel and source uploads.

### Related projects

- Related Git ergonomics tools include GitHub Desktop, GitHub for Mac, hub, gh, git-extras, and custom Git aliases. Related Kenneth Reitz projects include Requests, Pipenv, Records, Maya, Delegator, and other 'for Humans' tools.

### ソース

- <https://frostming.github.io/legit/>
- <https://github.com/frostming/legit>
- <https://kennethreitz.org/software/legit>
- <https://pypi.org/project/legit/0.1.0/>
- <https://pypi.org/pypi/legit/json>


## セキュリティノート

legit に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** legit
- **Version Scheme:** 0
- **Revision:** 11
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - legit - 1.2.0.post0-5: normalized package name match | Debian stable package indexes: legit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git extension to assist in manipulating branches | https://github.com/frostming/legit
- Nix - legit: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/legit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - legit - 1.2.0.post0-3: normalized package name match | Ubuntu 24.04 LTS package indexes: legit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git extension to assist in manipulating branches | https://github.com/frostming/legit
- MacPorts - legit: normalized package name match | MacPorts ports tree: devel/legit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/legit: normalized package name match | Scoop official bucket manifest trees: bucket/legit.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/ja/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [git-fresh](https://www.automicvault.com/ja/pkg/brew/git-fresh/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control, workflow.
- [all-repos](https://www.automicvault.com/ja/pkg/brew/all-repos/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [bit-git](https://www.automicvault.com/ja/pkg/brew/bit-git/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [braid](https://www.automicvault.com/ja/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://www.automicvault.com/ja/pkg/brew/codeberg-cli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [commitizen](https://www.automicvault.com/ja/pkg/brew/commitizen/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [commitlint](https://www.automicvault.com/ja/pkg/brew/commitlint/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [committed](https://www.automicvault.com/ja/pkg/brew/committed/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [pygitup](https://www.automicvault.com/ja/pkg/brew/pygitup/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/legit.yml](https://github.com/automic-vault/db/blob/main/combined/legit.yml)


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
