# 使用 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
- **版本:** 1.13.0
- **来源摘要:** Utility to keep git repos fresh
- **主页:** <https://github.com/imsky/git-fresh>
- **仓库:** <https://github.com/imsky/git-fresh>
- **最后更新:** 2026-06-18T09:25:51+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-fresh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
