MCPcopy Index your code
hub / github.com/desktop/desktop / initGitRepository

Function initGitRepository

app/src/lib/git/init.ts:5–11  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

3
4/** Init a new git repository in the given path. */
5export async function initGitRepository(path: string): Promise<void> {
6 await git(
7 ['-c', `init.defaultBranch=${await getDefaultBranch()}`, 'init'],
8 path,
9 'initGitRepository'
10 )
11}

Callers 2

init-test.tsFile · 0.90
CreateRepositoryClass · 0.90

Calls 2

gitFunction · 0.90
getDefaultBranchFunction · 0.90

Tested by

no test coverage detected