# 使用 Homebrew 安装 git-url-sub

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

## 安装

```sh
sudo av install brew:git-url-sub
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-url-sub
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:git-url-sub
- **软件包管理器:** Homebrew
- **版本:** 1.0.1
- **来源摘要:** Recursively substitute remote URLs for multiple repos
- **主页:** <https://gosuri.github.io/git-url-sub>
- **仓库:** <https://github.com/gosuri/git-url-sub>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-url-sub (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-url-sub is a small shell Git utility for recursively substituting remote URLs across multiple repositories.

### 项目历史

Greg Osuri published git-url-sub as a compact Git helper aimed at changing repository remotes in bulk rather than editing each repository by hand. The official generated man page identifies it as a Git URL substitution utility and dates the man page to August 2011.

### 采用历史

The project had a Homebrew installation path early enough to be documented in the README. Homebrew's formula packages version 1.0.1 in homebrew/core and also exposes a HEAD build, indicating small but durable package-manager presence.

### 使用方式

Practitioners use git-url-sub with a pattern and replacement to rewrite remote URLs, for example after a GitHub organization rename, a hosting migration, or a switch between URL styles. The `-c` option commits changes and `-s` suppresses output.

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

git-url-sub is notable as a Unix-style Git helper: a single-purpose command that automates a repetitive repository-maintenance chore without building a broader synchronization system.

### 时间线

- 2011: Official man page date records August 2011.
- 1.0.1: Homebrew packages git-url-sub as the current stable release.

### Related projects

- git-url-sub is related to `git remote set-url`, shell scripting around Git, and Homebrew-packaged Git helpers.

### 来源

- <https://formulae.brew.sh/formula/git-url-sub>
- <https://github.com/gosuri/git-url-sub#readme>
- <https://gosuri.github.io/git-url-sub>


## 安全说明

narrow executable package without higher-risk signals.

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


## Combined YAML source

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


## 来源

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