Tech News
← Back to articles

Git-fetch-file – Sync files from other repos with commit tracking and safety

read original related products more articles

Fetch and sync individual files or globs from other Git repositories, with commit tracking and local-change protection

git-fetch-file(1) is a utility for importing specific files from other Git repositories into your own project while keeping a manifest (.git-remote-files) that remembers where they came from and what commit they belong to.

It’s like a mini submodule, but for just the files you want.

Features

Pull a single file or glob from a remote Git repo

Track origin, commit, and comments in .git-remote-files

Optionally overwrite local changes with --force

Update tracked commits with --save

Simple CLI interface

Installation

... continue reading