git: cherry-pick, rebase and pull --rebase
@aron-cf がすでに取り組んでいます。
2026年9月6日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- TypeScript
- スター
- 9.2k
- フォーク
- 525
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 18
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudflare/computer のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
cloudflare/computer#106 · コメント 3 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
cloudflare/computer#68 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
cloudflare/computer#67 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
cloudflare/computer#52 · コメント 3 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cloudflare/computer#50 · コメント 5 件 ·
cloudflare/computer の issue をすべて見る
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100