macOS
brew install gitwatchlocal Homebrew formula metadata
安装
brew install gitwatchlocal Homebrew formula metadata
nix profile install nixpkgs#gitwatchnixpkgs 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 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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gitwatch | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/gitwatch/gitwatch
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | coreutils, fswatch |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gitwatch |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gitwatch
nix profile install nixpkgs#gitwatch来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.