Files
cpp-template/.fork/custom-commands.json
T

15 lines
394 B
JSON

[
{
"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"
}
]