diff --git a/CLAUDE.md b/CLAUDE.md index bb4d1f0..47a1ff2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,5 +1,9 @@ # Claude AI Instructions for un-inception +## Commit Messages + +**NEVER add Claude attribution to commit messages.** No robot emoji, no "Generated with Claude Code", no "Co-Authored-By: Claude". Just write the commit message like a human wrote it. + ## Project Overview UN CLI Inception - The UN CLI written in every language it can execute. 42 implementations, one unified interface. @@ -143,7 +147,36 @@ Each implementation must support: The `-f FILE` flag must work for ALL three commands (execute, session, service) - files go to `/tmp/` in the container. +## Git Remotes & Mirroring + +This repo pushes to multiple remotes automatically. No git hooks needed - just uses git's built-in multi-push URL feature. + +**Remotes:** +- `origin` - Primary (fetches from unturf, pushes to both) +- `github` - Public mirror at GitHub + +**Configuration:** +``` +origin ssh://git@git.unturf.com:2222/engineering/unturf/un-inception.git (fetch) +origin ssh://git@git.unturf.com:2222/engineering/unturf/un-inception.git (push) +origin git@github.com:russellballestrini/un-inception.git (push) +github git@github.com:russellballestrini/un-inception.git (fetch/push) +``` + +**Usage:** +- `git push origin` - Pushes to both unturf AND GitHub automatically +- `git push github` - Pushes only to GitHub (if needed) +- `git pull` - Pulls from unturf (origin) + +**To replicate this setup:** +```bash +git remote add github git@github.com:russellballestrini/un-inception.git +git remote set-url --add --push origin ssh://git@git.unturf.com:2222/engineering/unturf/un-inception.git +git remote set-url --add --push origin git@github.com:russellballestrini/un-inception.git +``` + ## Related Repos - `~/git/unsandbox.com/` - Portal (contains un.c CLI at cli/un.c) - `~/git/api.unsandbox.com/` - API server +- https://github.com/russellballestrini/un-inception - Public GitHub mirror diff --git a/README.md b/README.md index ab5870d..319b30c 100644 --- a/README.md +++ b/README.md @@ -217,4 +217,53 @@ Anyone is free to copy, modify, publish, use, compile, sell, or distribute this --- +## Git Mirroring + + + +This repo mirrors to multiple remotes using git's native multi-URL push. One push, many destinations. + +```bash +# name the mirror +git remote add github git@github.com:russellballestrini/un-inception.git + +# teach origin to push to both places +git remote set-url --add --push origin ssh://git@git.unturf.com:2222/engineering/unturf/un-inception.git +git remote set-url --add --push origin git@github.com:russellballestrini/un-inception.git +``` + +Now `git push origin` pushes to both. No hooks required. + +``` +$ git remote -v +github git@github.com:russellballestrini/un-inception.git (fetch) +github git@github.com:russellballestrini/un-inception.git (push) +origin ssh://git@git.unturf.com:2222/engineering/unturf/un-inception.git (fetch) +origin ssh://git@git.unturf.com:2222/engineering/unturf/un-inception.git (push) +origin git@github.com:russellballestrini/un-inception.git (push) +``` + +--- + +ANGRY RUBY DEV #3 was here + +--- + Copyright 2025 [TimeHexOn](https://www.timehexon.com) & [foxhop](https://www.foxhop.net) & [russell@unturf](https://www.unturf.com/software)