# 使用 Homebrew 安装 gitbackup

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

## 安装

```sh
sudo av install brew:gitbackup
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitbackup
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gitbackup
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gitbackup>
- **版本:** 1.3.1
- **来源摘要:** Tool to backup your Bitbucket, GitHub and GitLab repositories
- **主页:** <https://github.com/amitsaha/gitbackup>
- **仓库:** <https://github.com/amitsaha/gitbackup>
- **许可证:** MIT
- **源码归档:** <https://github.com/amitsaha/gitbackup/archive/refs/tags/v1.3.1.tar.gz>
- **最后更新:** 2026-07-25T20:55:23-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gitbackup (cli)
- gitbackup (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.1
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/amitsaha/gitbackup
- 检测到的最新版本: v1.3.1 (当前)
## 项目历史与用法

gitbackup is a Go command-line tool for backing up repositories from GitHub, GitLab, Bitbucket, and Forgejo. It is aimed at users and teams that want local or migration-style copies of hosted Git repositories.

### 项目历史

Amit Saha's project dates back to at least 2017, when the README pointed readers of a Linux Journal article to the lj-0.1 era of the source. The tool grew from repository cloning into a broader backup utility with service-specific authentication, OS-specific configuration paths, Docker images, and a GitHub migration mode.

### 采用历史

gitbackup serves a practical niche rather than a broad platform role: independent developers, consultants, and organizations that want a repeatable backup path for repositories spread across hosted forges. Homebrew packaging gave macOS users a direct installation path, while release binaries and containers cover other deployments.

### 使用方式

Practitioners configure service tokens, choose a provider, and run gitbackup to clone repositories into a backup directory. GitHub users can also use migration-oriented commands that retrieve archive artifacts supported by GitHub's Migration API.

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

The package is a reminder that source hosting is not a backup strategy by itself. In package-manager terms, gitbackup wraps forge APIs, Git clone behavior, and host-specific credentials into one installable disaster-recovery utility.

### 时间线

- 2017: v0.1-era source associated with a Linux Journal backup article.
- 2019: 0.4 and 0.5 release tags followed the early Go CLI line.
- 2021: 0.6 added the documented GitHub OAuth device flow.
- 2026: README described commercial support by Common Loop Works Pty Ltd.

### Related projects

- Git provides the clone and repository data model.
- GitHub, GitLab, Bitbucket, and Forgejo provide the hosted repository APIs.
- GitHub's Migration API supplies the archive-based GitHub backup mode.

### 来源

- <https://formulae.brew.sh/formula/gitbackup>
- <https://github.com/amitsaha/gitbackup>
- <https://github.com/amitsaha/gitbackup/releases>
- <https://raw.githubusercontent.com/amitsaha/gitbackup/master/README.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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

- Linux: $XDG_CONFIG_HOME/gitbackup/gitbackup.yml, ~/.config/gitbackup/gitbackup.yml
- macOS: ~/Library/Application Support/gitbackup/gitbackup.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gitbackup
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **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.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [ghorg](https://pkg.so/zh-hans/brew/ghorg/) - Shares pkgdb curated category or tags: backup, bitbucket, cli, developer-tools, git.
- [multi-gitter](https://pkg.so/zh-hans/brew/multi-gitter/) - Shares pkgdb curated category or tags: bitbucket, cli, developer-tools, git, github.
- [git-spice](https://pkg.so/zh-hans/brew/git-spice/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [gcli](https://pkg.so/zh-hans/brew/gcli/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [sugarjar](https://pkg.so/zh-hans/brew/sugarjar/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [microplane](https://pkg.so/zh-hans/brew/microplane/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [gh](https://pkg.so/zh-hans/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github.
- [glab](https://pkg.so/zh-hans/brew/glab/) - Shares pkgdb curated category or tags: cli, developer-tools, git, gitlab.

## Combined YAML source

View the package source record on GitHub. [combined/gitbackup.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gitbackup.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
