UNPKG

sync-worktrees

Version:

Automatically synchronize Git worktrees with remote branches - perfect for multi-branch development workflows

15 lines 630 B
/** * Extracts the repository name from a Git URL * @param gitUrl - The Git URL (HTTPS or SSH format) * @returns The repository name without .git extension * @throws Error if the URL format is invalid */ export declare function extractRepoNameFromUrl(gitUrl: string): string; /** * Generates the default bare repository directory path * @param repoUrl - The Git repository URL * @param baseDir - The base directory for bare repos (default: .bare) * @returns The path to the bare repository */ export declare function getDefaultBareRepoDir(repoUrl: string, baseDir?: string): string; //# sourceMappingURL=git-url.d.ts.map