Skip to main content

create_worktree

Function create_worktree 

Source
pub fn create_worktree(repo_root: &Path, name: &str) -> Result<PathBuf>
Expand description

Create a git worktree at ~/.zag/worktrees/<sanitized-repo-path>/<name> using detached HEAD. Returns the path to the new worktree directory.