# 使用 Homebrew, apt, dnf, MacPorts, Nix 安装 git-ftp

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-ftp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-ftp
```

  证据: MacPorts ports tree: devel/git-ftp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install git-ftp
```

  证据: Debian stable package indexes: git-ftp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-ftp
```

  证据: Fedora Rawhide package metadata: git-ftp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#git-ftp
```

  证据: nixpkgs package indexes: pkgs/by-name/gi/git-ftp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:git-ftp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-ftp>
- **版本:** 1.6.0
- **来源摘要:** Git-powered FTP client
- **主页:** <https://git-ftp.github.io/>
- **仓库:** <https://github.com/git-ftp/git-ftp>
- **上游文档:** <https://git-ftp.github.io/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/git-ftp/git-ftp/archive/refs/tags/1.6.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-ftp (cli)
- git-ftp (别名)

## 依赖

- curl
- libssh2

## 构建依赖

- pandoc

## 安装行为

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

## 版本和新鲜度

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

git-ftp is a Git-oriented deployment utility for FTP and related protocols. Its core idea is to record the deployed Git commit on the server, then use Git history to upload only files that changed since that commit.

### 项目历史

The project grew around a common shared-hosting problem: teams had Git locally but only FTP, FTPS, SFTP, or lftp-style access on the deployment target. The README describes the tool as uploading to FTP servers 'the Git way', while the changelog records a long stabilization path through 1.0.0, submodule handling, include and ignore rules, hooks, FTPES/SFTP fixes, and compatibility work for newer Git versions.

A 0.8-era changelog entry records the move to the git-ftp GitHub organization. Later releases added push hooks, snapshot and pull/download actions, BusyBox fixes, PEM/key options, and better error handling, keeping the tool as a shell-based bridge between Git workflows and older hosting environments.

### 采用历史

git-ftp became the most visible project in this batch because it solved a deployment niche that Git itself does not cover. Its packaging in Homebrew and other Unix package collections reflects use by developers who need repeatable deployments without rsync, SSH shell access, or a platform-specific deployment service.

### 使用方式

Practitioners configure FTP URL, user, and password in Git config, run `git ftp init` for a first upload or `git ftp catchup` when files already exist remotely, and then deploy later commits with `git ftp push`. The ignore and include files let projects tune which tracked or untracked paths are sent.

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

git-ftp is package-manager interesting because it packages an old-web deployment pattern as a Git subcommand-style CLI. It sits at the edge between version-control tooling and hosting compatibility, where a small shell utility can replace heavier deployment systems for simple sites.

### 时间线

- 2013: Repository created under the git-ftp organization on GitHub.
- 2016: 1.3.0 added push hooks, snapshot support, and file-list performance work.
- 2018: 1.5.0 addressed Git 2.16 compatibility and SFTP documentation.
- 2020: 1.6.0 release line focused on error handling and nested branch support.

### Related projects

- git-ftp is related to Git deployment hooks, rsync-based deploy scripts, lftp workflows, and hosted CI actions that publish artifacts to FTP targets.

### 来源

- <https://formulae.brew.sh/formula/git-ftp>
- <https://github.com/git-ftp/git-ftp>
- <https://github.com/git-ftp/git-ftp/blob/master/CHANGELOG.md>
- <https://github.com/git-ftp/git-ftp/blob/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

- Unix: .git/config, .git-ftp-ignore, .git-ftp-include

## Credential files

- Unix: .git/config
## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - git-ftp - 1.6.0+dfsg-1: normalized package name match | Debian stable package indexes: git-ftp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git powered FTP client written as shell script | https://github.com/git-ftp/git-ftp
- Nix - git-ftp: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-ftp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-ftp - 1.6.0+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: git-ftp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git powered FTP client written as shell script | https://github.com/git-ftp/git-ftp
- dnf - git-ftp - 1.6.0-18.fc45: normalized package name match | Fedora Rawhide package metadata: git-ftp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Git powered FTP client written as shell script | https://github.com/git-ftp
- MacPorts - git-ftp: normalized package name match | MacPorts ports tree: devel/git-ftp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [curl](https://pkg.so/zh-hans/brew/curl/) - Runtime dependency declared by Homebrew.
- [pandoc](https://pkg.so/zh-hans/brew/pandoc/) - Build dependency declared by Homebrew.
- [gh](https://pkg.so/zh-hans/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [glab](https://pkg.so/zh-hans/brew/glab/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [bat](https://pkg.so/zh-hans/brew/bat/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [fastlane](https://pkg.so/zh-hans/brew/fastlane/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [git-filter-repo](https://pkg.so/zh-hans/brew/git-filter-repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-series](https://pkg.so/zh-hans/brew/git-series/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git, libssh2.
- [git-workspace](https://pkg.so/zh-hans/brew/git-workspace/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git, libssh2.
- [git-absorb](https://pkg.so/zh-hans/brew/git-absorb/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/git-ftp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-ftp.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
- external package-manager database matches
- cross-ecosystem install command graph
