Add custom command to Fork that copies commit to upstream without disturbing current working tree

This commit is contained in:
gaztin committed 2026-07-12 02:30:16 +02:00
1 parent c092cec25a
commit 58f48ac385
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
[
{
"version" : 2
},
{
"action" : {
"script" : "git worktree add .temp-worktree upstream/main\ncd .temp-worktree\ngit cherry-pick ${sha}\ngit push upstream HEAD:main\ncd ..\ngit worktree remove .temp-worktree",
"showOutput" : false,
"type" : "sh",
"waitForExit" : true
},
"name" : "Cherry-pick and push to upstream",
"target" : "revision"
}
]