Automic VaultAutomic Vault

brew

使用 Homebrew, Nix 安装 gitwatch

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gitwatch

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#gitwatch

nixpkgs package indexes · pkgs/by-name/gi/gitwatch/package.nix · 来源: api.github.com

概览

软件包摘要

Watch a file or folder and automatically commit changes to a git repo easily

命令和别名

  • gitwatch

历史

项目历史与用法

gitwatch is a small shell-script utility that watches a file or directory and automatically commits changes to an existing Git repository. Its history is the history of a practical automation wrapper: file-system notifications, a short delay, git add, git commit, and optional push.

项目历史

The gitwatch repository was created on GitHub in 2012 and kept the project's scope deliberately small. The official README describes it as a Bash script for watching a file or folder and committing changes to a Git repository.

Over time, the project added packaging and operating-system conveniences around that script. The README documents installation from source, bpkg, Arch AUR, NixOS, Docker, and user services for SysVInit and systemd, while keeping the central behavior as a long-running watch loop.

采用历史

gitwatch attracted users who wanted automatic history for files that are not normally managed through explicit Git commits. The README names configuration files and document files as examples, especially when an application writes changes without a clear save or apply workflow.

Package metadata in this batch shows Homebrew and Nix packaging, and the README documents additional community distribution through AUR and Docker. That is modest but real adoption for a niche automation script.

使用方式

Practitioners run gitwatch against a file or directory that already belongs to a Git repository. On Linux it uses inotifywait; on macOS the README points users to fswatch and coreutils through Homebrew.

A typical use is personal or small-team backup of frequently edited notes, dotfiles, or generated configuration. gitwatch waits briefly after a change to avoid racing partial writes, commits the changed file or directory contents, and can push to a remote when configured.

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

gitwatch is package-nerd interesting because it is tiny Unix automation rather than a platform. It exposes Git as a low-friction append-only history mechanism for arbitrary local state.

The tool also illustrates the tradeoff that packagers like: one shell script plus standard utilities can cover a workflow that would otherwise invite a daemon, database, or bespoke sync service.

时间线

  • 2012: The gitwatch repository is created on GitHub.
  • 2020: The v0.1 tag appears in the repository tag history.
  • 2021: The README table of contents records active documentation work around installation and service usage.
  • 2024: NixOS module instructions are documented for service-style deployments.

Related projects

  • Git provides the repository and commit machinery used by gitwatch.
  • inotify-tools provides the inotifywait watcher used on Linux.
  • fswatch and GNU coreutils are documented as macOS requirements.
  • systemd, SysVInit, Docker, bpkg, AUR, and NixOS are documented deployment surfaces.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gitwatchcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.6
管理器更新时间2026-06-18
本地数据OK
上游当前
检测到的最新版本v0.6

https://github.com/gitwatch/gitwatch

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gitwatch
版本0.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gitwatch
主页https://github.com/gitwatch/gitwatch
仓库https://github.com/gitwatch/gitwatch
上游文档https://github.com/gitwatch/gitwatch#readme
许可证GPL-3.0-or-later
源码归档https://github.com/gitwatch/gitwatch/archive/refs/tags/v0.6.tar.gz
最后更新2026-06-18T09:25:51+09:00
Pulseupdated
依赖coreutils, fswatch
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegitwatch
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

gitwatch

nix profile install nixpkgs#gitwatch
  • normalized package name match
  • 匹配方式:Gitwatch
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/gitwatch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment