Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Add /gitup command for rebasing over CI version bumps

Adam Eivy123a1ca8cbba
diff --git a/.claude/commands/gitup.md b/.claude/commands/gitup.md
new file mode 100644
index 0000000000..3247bfb4f8
--- /dev/null
+++ b/.claude/commands/gitup.md
@@ -0,0 +1,23 @@
+# Git Push with Rebase
+
+Push local commits to the dev branch, automatically rebasing over any CI version bump commits.
+
+## Command
+
+```bash
+git pull --rebase --autostash && git push
+```
+
+## Why This is Needed
+
+The dev branch receives automatic `[skip ci]` commits that bump the package.json version after each successful CI run. When pushing local changes, you'll often need to rebase over these version bump commits.
+
+## What It Does
+
+1. **`--autostash`** - Stashes any uncommitted changes before pulling, then re-applies them after
+2. **`--rebase`** - Replays your local commits on top of the remote changes (cleaner than merge commits)
+3. **`git push`** - Pushes your rebased commits to remote
+
+## When to Use
+
+Use `/gitup` instead of `git push` when working on the dev branch. This handles the common case where CI has pushed a version bump while you were working locally.
diff --git a/CLAUDE.md b/CLAUDE.md
index 9e29f44ed1..d6222ded6b 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -60,5 +60,6 @@ port-error: #ef4444
- **dev**: Active development (auto-bumps patch on CI pass)
- **main**: Production releases only
- PR `dev → main` creates tagged release and preps next version
+- **Use `/gitup` to push** - The dev branch receives auto version bump commits from CI. Always use `git pull --rebase --autostash && git push` (or `/gitup`) instead of plain `git push`.
See `docs/VERSIONING.md` for details.