MCPcopy
hub / github.com/xintaofei/codeg / gitPush

Function gitPush

src/lib/api.ts:1288–1300  ·  view source on GitHub ↗
(
  path: string,
  remote?: string | null,
  credentials?: GitCredentials | null,
  folderId?: number | null
)

Source from the content-addressed store, hash-verified

1286}
1287
1288export async function gitPush(
1289 path: string,
1290 remote?: string | null,
1291 credentials?: GitCredentials | null,
1292 folderId?: number | null
1293): Promise<GitPushResult> {
1294 return getTransport().call("git_push", {
1295 path,
1296 remote: remote ?? null,
1297 credentials: credentials ?? null,
1298 folderId: folderId ?? null,
1299 })
1300}
1301
1302export async function gitNewBranch(
1303 path: string,

Callers 2

CommitWorkspaceFunction · 0.90
handlePushFunction · 0.90

Calls 2

getTransportFunction · 0.90
callMethod · 0.65

Tested by

no test coverage detected