Expand description
Git operations: cloning, fetching, branch detection, and worktree creation.
Functionsยง
- bare_
clone - Clone
urlas a bare repository intodest. - branch_
exists_ local - Return
trueifbranchexists as a local branch inrepo. - branch_
exists_ remote - Return
trueifbranchexists as a remote-tracking ref in the bare clone. - create_
local_ worktree - Create a worktree from a local (non-bare) repository without referencing a remote.
- create_
worktree - Create a worktree inside a bare clone.
- detect_
default_ branch - Detect the default branch of a bare remote repository.
- detect_
local_ default_ branch - Detect the current branch of a local (non-bare) repository.
- git_
fetch - Fetch the latest refs from
originfor a bare clone atbare.