Template
Add custom command to Fork that copies commit to upstream without disturbing current working tree
This commit is contained in:
1 parent
c092cec25a
commit
58f48ac385
1 file changed
+15
@@ -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"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user