Restore CLI and add plan command · Entire

Restore CLI and add plan command

0cff362main·

Soph·3mo ago·1 file·+16 added/-0 removed

Sessions

a42e22b7f6bcView transcript

[?
Can you take a look at the go code (wasm) in /Users/soph/Work/entire/devenv/entire-io-worktree1 based a bit on that I wonder if something like this can be build:Codex·GPT-5.4·1 step](/content/gh/entireio/git-sync/session/019d6d29-8cf7-7fe3-adc9-8c3e4d9d5603#timeline-a42e22b7f6bc/index.html)

Changes

1

7 unmodified lines

8
9
10
11
12
13
14
15
16
17
18
19
20
27 unmodified lines

48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

7 unmodified lines

That keeps the target side incremental without fetching target objects into the local process first.

The command surface is:

- `git-sync probe`: inspect a source remote
- `git-sync fetch`: exercise source-side fetch negotiation without pushing
- `git-sync plan`: compute source-to-target ref actions without pushing
- `git-sync sync`: execute the planned changes against the target

## Current scope

- Smart HTTP only
27 unmodified lines

https://github.com/target-org/target-repo.git
```

Plan a sync without pushing anything:

```bash
go run ./cmd/git-sync plan \
  --stats \
  https://github.com/source-org/source-repo.git \
  https://github.com/target-org/target-repo.git
```

Sync specific branches:

```bash