Add GitHub mirror with multi-push URL technique
This commit is contained in:
parent
ccd723db99
commit
18fdf94ace
2 changed files with 82 additions and 0 deletions
33
CLAUDE.md
33
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
|
||||
|
|
|
|||
49
README.md
49
README.md
|
|
@ -217,4 +217,53 @@ Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
|
|||
|
||||
---
|
||||
|
||||
## Git Mirroring
|
||||
|
||||
<!--
|
||||
Mon Jan 5 07:53:45 PM EST 2026
|
||||
Setting Orange, the 5th day of Chaos in the YOLD 3192 - Celebrate Mungday
|
||||
|
||||
Welcome curious one, you who reads source and digs beneath surfaces.
|
||||
|
||||
Suppose you wish to push code to many places at once.
|
||||
Suppose you distrust hooks and scripts and want only the pure thing.
|
||||
Suppose git itself already knows how to do this, waiting to be asked.
|
||||
|
||||
The secret is this: a remote may have many push URLs.
|
||||
When you push to origin, git will push to each URL in turn.
|
||||
No hooks. No scripts. Just git doing what git does.
|
||||
|
||||
This is the way. Hail Eris! All Hail Discordia! Fnord.
|
||||
|
||||
- The Sign Maker
|
||||
-->
|
||||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue