← All projects
Project record1 mention
Originally shared on Hacker News

git-dupe

A Git tool that lets two Git repositories share the same worktree, so private files such as notes and agent instructions (e.g., AGENTS.md) can be versioned in a separate private repo while staying in place in a public repo, with git-dupe commands behaving like normal Git commands against the private repo.

Last shared
01 / The problem

What it addresses

Notes, skills, and agent instructions are part of a personal workflow and shouldn't be committed to the public repo, but they can't simply be gitignored because the author wants version history for them at their correct locations in the project.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. git-dupe

    A Git tool that lets two Git repositories share the same worktree, so private files such as notes and agent instructions (e.g., AGENTS.md) can be versioned in a separate private repo while staying in place in a public repo, with git-dupe commands behaving like normal Git commands against the private repo.

    Problem: Notes, skills, and agent instructions are part of a personal workflow and shouldn't be committed to the public repo, but they can't simply be gitignored because the author wants version history for them at their correct locations in the project.

    Posted by @WayHow · Original source ↗

    Story title · @WayHow · · Source ↗

    Show HN: git-dupe – Version private files alongside a public Git repo

    Submitted URL · @WayHow · · Source ↗

    https://github.com/BrianWeiHaoMa/git-dupe/tree/main

    Source text · @WayHow · · Source ↗

    In short, git-dupe allows two Git repos to share the same worktree, while using native Git for most operations. Most git-dupe commands behave just like normal Git commands, operating on the private repo instead.

    Source text · @WayHow · · Source ↗

    I have notes, skills, and agent instructions that are part of my personal workflow, so I do not want them committed to the public repo, but at the same time, I want them to be in the project at the correct locations (e.g., AGENTS.md file locations matter), and these files cannot be simply gitignored because I want versioning for them.

    Source text · @WayHow · · Source ↗

    git-dupe currently supports Linux and macOS, and is under the MIT License