# 使用 Homebrew 安装 git-fresh

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

## 安装

```sh
sudo av install brew:git-fresh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-fresh
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:git-fresh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-fresh>
- **版本:** 1.13.0
- **来源摘要:** Utility to keep git repos fresh
- **主页:** <https://github.com/imsky/git-fresh>
- **仓库:** <https://github.com/imsky/git-fresh>
- **许可证:** MIT
- **源码归档:** <https://github.com/imsky/git-fresh/archive/refs/tags/v1.13.0.tar.gz>
- **最后更新:** 2026-06-18T09:25:51+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-fresh (cli)
- git-fresh (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.13.0
- 管理器更新时间: 2026-06-18
- 本地数据: OK
- 上游仓库: https://github.com/imsky/git-fresh
- 检测到的最新版本: v1.13.0 (当前)
## 项目历史与用法

git-fresh is a small Git maintenance command by Ivan Malopinsky for updating a repository's root branch, pruning remotes, stashing changes, and removing stale local or remote branches.

### 项目历史

The project is distributed as a shell-based Git helper. Its README describes the default workflow as updating the local root branch from the remote root, stashing changes, and pruning remote branches, with flags for stale-branch deletion, rebasing or merging, tag cleanup, workspace wiping, and stash clearing.

### 采用历史

The README documents manual installation on Linux, macOS, and Windows, plus package-manager paths through Homebrew, bpkg, and the Arch User Repository. Homebrew's formula lists git-fresh in homebrew/core with stable version 1.13.0, which reflects modest but real package-manager adoption.

### 使用方式

Practitioners run `git fresh` when returning to a repository and wanting to synchronize the root branch, prune remote-tracking branches, and optionally clean stale branches or tags. The `.freshignore` file, either in the repository or home directory, lets users protect branch names from cleanup.

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

The package is niche but practical: it bundles a handful of recurring Git maintenance commands into one executable and exposes a tiny ignore-file convention. Its significance is local-workstation ergonomics rather than broad ecosystem influence.

### 时间线

- 1.13.0: Homebrew packages git-fresh as the current stable release.
- README era: Homebrew, bpkg, and AUR installation paths are documented upstream.

### Related projects

- git-fresh is related to Git's fetch, pull, prune, stash, rebase, branch deletion, and tag cleanup commands.

### 来源

- <https://formulae.brew.sh/formula/git-fresh>
- <https://github.com/imsky/git-fresh#readme>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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: .freshignore, ~/.freshignore
## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [legit](https://pkg.so/zh-hans/brew/legit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control, workflow.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lefthook](https://pkg.so/zh-hans/brew/lefthook/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [commitizen](https://pkg.so/zh-hans/brew/commitizen/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [diff-so-fancy](https://pkg.so/zh-hans/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [repo](https://pkg.so/zh-hans/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [mergiraf](https://pkg.so/zh-hans/brew/mergiraf/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-branch-is](https://pkg.so/zh-hans/npm/git-branch-is/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-detect-case-change](https://pkg.so/zh-hans/npm/git-detect-case-change/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-branchless](https://pkg.so/zh-hans/brew/git-branchless/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
