# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-url-sub>
- **版本:** 1.0.1
- **来源摘要:** Recursively substitute remote URLs for multiple repos
- **主页:** <https://gosuri.github.io/git-url-sub>
- **仓库:** <https://github.com/gosuri/git-url-sub>
- **上游文档:** <https://gosuri.github.io/git-url-sub>
- **许可证:** MIT
- **源码归档:** <https://github.com/gosuri/git-url-sub/archive/refs/tags/1.0.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-url-sub (cli)
- git-url-sub (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.1
- 本地数据: OK
- 上游仓库: https://github.com/gosuri/git-url-sub
- 检测到的最新版本: 1.0.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-url-sub
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, 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.
- [repo](https://pkg.so/zh-hans/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, repository-management, version-control.
- [microplane](https://pkg.so/zh-hans/brew/microplane/) - Shares pkgdb curated category or tags: cli, developer-tools, repository-management, version-control.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [pre-commit](https://pkg.so/zh-hans/brew/pre-commit/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [lefthook](https://pkg.so/zh-hans/brew/lefthook/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [mercurial](https://pkg.so/zh-hans/brew/mercurial/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [commitizen](https://pkg.so/zh-hans/brew/commitizen/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [git-fresh](https://pkg.so/zh-hans/brew/git-fresh/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, extension.
- [git-xet](https://pkg.so/zh-hans/brew/git-xet/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, extension.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
