Documentation
¶
Overview ¶
Package worktree git-worktree - Manage multiple working trees.
SYNOPSIS ¶
Reference: https://git-scm.com/docs/git-worktree
git worktree add [-f] [--detach] [--checkout] [--lock] [-b <new-branch>] <path> [<branch>] git worktree list [--porcelain] git worktree lock [--reason <string>] <worktree> git worktree prune [-n] [-v] [--expire <expire>] git worktree unlock <worktree>
DESCRIPTION ¶
Manage multiple working trees attached to the same repository.
Index ¶
- func Add(path, branch string) func(*types.Cmd)
- func Branch(branch string) func(*types.Cmd)
- func BranchOverride(branch string) func(*types.Cmd)
- func Checkout(g *types.Cmd)
- func Detach(g *types.Cmd)
- func DryRun(g *types.Cmd)
- func Expire(time string) func(*types.Cmd)
- func Force(g *types.Cmd)
- func List(g *types.Cmd)
- func Lock(worktree string) func(*types.Cmd)
- func LockOption(g *types.Cmd)
- func NoCheckout(g *types.Cmd)
- func Porcelain(g *types.Cmd)
- func Prune(g *types.Cmd)
- func Reason(value string) func(*types.Cmd)
- func UnLock(worktree string) func(*types.Cmd)
- func Verbose(g *types.Cmd)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add git worktree add [-f] [--detach] [--checkout] [--lock] [-b <new-branch>] <path> [<branch>]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.