useGit API
    Preparing search index...

    Interface InitOptions

    interface InitOptions {
        "--initial-branch"?: "main" | "master";
        "--object-format"?: "sha1" | "sha256";
        "--separate-git-dir"?: string;
        "--template"?: string;
        flags?: ("--quiet" | "--bare")[];
    }
    Index

    Properties

    "--initial-branch"?: "main" | "master"

    Use branch-name for the initial branch in the newly created repository.

    "main"
    
    "--object-format"?: "sha1" | "sha256"

    Hash algorithm.

    "sha1"
    
    "--separate-git-dir"?: string
    ".git"
    
    "--template"?: string

    Specify the directory from which templates will be used.

    flags?: ("--quiet" | "--bare")[]