git: cherry-pick, rebase and pull --rebase
@aron-cf ci sta già lavorando.
Dal 6/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
docs/13_git_interface.md lists cherry-pick and revert as "out of scope until a concrete caller needs them." Here is one.
Use case
A long-lived checkout on a shared branch, with local commits that are not pushed yet, while other clients push to the same branch. Catching up with merge or pull adds a merge commit every time and makes the history non-linear. What a developer does here is git pull --rebase: the local commits exist nowhere else, so replaying them on top of the upstream rewrites nothing shared, and the history stays linear.
Ask
cherryPickon the client, andgit cherry-pick <oid>in the shell. isomorphic-git already shipscherryPick(a three-way merge against the commit's own parent, applied to the working tree), so this is a wrapper in the shape ofmerge.rebaseon the client, withgit rebase <upstream>andgit pull --rebasein the shell: reset the branch to the upstream and cherry-pickupstream..HEADoldest first, stopping on a conflict with the paths reported asmergereports them.--autostashwould be welcome, sincestashis already there.revert, if you want to close the set.
Related
isomorphic-git's merge writes the merged tree and the commit and moves the branch, but on a clean merge it does not update the working directory; only pull runs a checkout afterwards. Through the client, a clean merge therefore leaves every file it changed reading as a local modification back to the old content. Worth a line in the docs.
Environment
@cloudflare/computer 0.3.0 (pkg.pr.new build 9184be3), isomorphic-git 1.38, Workers runtime.
- Lingua principale
- TypeScript
- Stelle
- 9.2k
- Fork
- 525
- Merge medio
- 3g 12h
- PR unite (30g)
- 18
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudflare/computer
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
cloudflare/computer#106 · 3 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cloudflare/computer#68 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cloudflare/computer#67 · 1 commento ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
cloudflare/computer#52 · 3 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
cloudflare/computer#50 · 5 commenti ·
Tutte le issue di cloudflare/computer
Issue simili
-
blocklist removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pastelsky/bundlephobia#1122 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100