Hey r/devops !
If you maintain multiple repositories (microservices, polyrepos, or SDKs), you probably know the pain of keeping shared configuration files in sync:
.github/workflows/*.yml
.editorconfig
Cargo.toml / package.json
Existing file-copying bots usually clobber legitimate repo-specific overrides.
I built driftsync , an open-source CLI engine in Rust that solves this using stateful 3-way structural merging:
Tracks baseline ancestors in .driftsync.lock
Structural merging for TOML (via toml_edit , preserving comments and formatting), JSON, and YAML blocks
Preserves local customizations while pulling upstream updates
Git automation: checks out branches, commits per repo, and opens PRs
Secret scanner to prevent accidental token leaks during template sync
You can install it directly via Cargo: cargo install driftsync
GitHub: https://github.com/Liqtzone/driftsync Crates.io: https://crates.io/crates/driftsync
Feedback, critique, and feature suggestions are very welcome!
submitted by…