-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcustom-commands.json
More file actions
47 lines (47 loc) · 1.06 KB
/
custom-commands.json
File metadata and controls
47 lines (47 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[
{
"version" : 2
},
{
"action" : {
"script" : "git push gitcode.com --delete refs/heads/${ref}\ngit push gitee.com --delete refs/heads/${ref}\ngit checkout main\ngit branch --delete --force ${ref}",
"showOutput" : false,
"type" : "sh",
"waitForExit" : true
},
"name" : "Delete All",
"refTargets" : [
"localbranch",
"remotebranch"
],
"target" : "ref"
},
{
"action" : {
"script" : "git fetch --all --prune",
"showOutput" : false,
"type" : "sh",
"waitForExit" : true
},
"name" : "Fetch All",
"refTargets" : [
"localbranch",
"remotebranch"
],
"target" : "ref"
},
{
"action" : {
"script" : "git push origin refs/heads/${ref} --verbose\ngit push gitcode.com refs/heads/${ref} --verbose\ngit push gitee.com refs/heads/${ref} --verbose",
"showOutput" : false,
"type" : "sh",
"waitForExit" : true
},
"name" : "Push All",
"refTargets" : [
"localbranch",
"remotebranch"
],
"target" : "ref"
}
]