(setUpstream?: { remote: string; branch: string })
| 125 | } |
| 126 | |
| 127 | async push(setUpstream?: { remote: string; branch: string }) { |
| 128 | const { localUrl: cwd } = this.opts; |
| 129 | let setUpstremArg = ""; |
| 130 | if (setUpstream) |
| 131 | setUpstremArg = ` --set-upstream ${setUpstream.remote} ${setUpstream.branch}`; |
| 132 | await execa.command([`git push${setUpstremArg}`].join(" "), { |
| 133 | shell: true, |
| 134 | cwd, |
| 135 | }); |
| 136 | } |
| 137 | |
| 138 | /** Creates a dangling stash commit without changing the index or working tree. */ |
| 139 | async stashCreate() { |
no outgoing calls