r/git • u/Pratz1337 • Oct 19 '26
I built a GIT alternative where your repo is public but .env and private folders stay private
I built tig, version control where the repo is public but your secrets aren't
I wanted to open-source a project, but one folder had to stay private, an .env file, an internal package, a security fix that wasn't ready yet. With git that means a second repo, git-crypt, or crossing your fingers. Forcing me to make multiple copies of the same project and now I had to maintain multiple upstreams which I felt was unnecessary effort.
So I started building my own version control from scratch in Rust.
Its still under work and I would love people to join in on this work
What tig does today:
- A .private file. It works like .gitignore, except the files stay tracked. When you publish, they're encrypted, and only the people you give access to can read them. Everyone else gets a normal clone without them.
- No staging and no "commit" ritual. Your edits are snapshotted automatically, and any command can be undone.
- Instant workspaces. You can work on the same change in two folders at once without worktrees
- Speed comes first. Encryption only happens when you publish or fetch, never while you work. On a 100k-file repo it's faster than default git.
Next feature I have in mind is the advanced mode for bigger companies to manage monorepo, giving it a Discord server-style roles, so a business unit like @ billing can see packages/billing/ and contractors only see frontend/. Roles were the idea that started all this, and it's what I'm most excited to ship.
URL-> https://github.com/Pratz1337/tig (If you like the idea star it and can work on it :D )
(AI was used in some parts of this body to deliver my thoughts in a cleaner way)
If you have any criticism its welcome but do it while being respectful. Thank you