MCPcopy
hub / github.com/21st-dev/magic-mcp / git

Function git

src/utils/git-operations.ts:9–12  ·  view source on GitHub ↗
(cwd: string, args: string)

Source from the content-addressed store, hash-verified

7 * Execute a git command in the specified directory
8 */
9export async function git(cwd: string, args: string): Promise<string> {
10 const { stdout } = await execAsync(`git ${args}`, { cwd });
11 return stdout.trim();
12}

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected