git-prole-add(1)
okay bestie, welcome to the git-prole-add(1) page β yes, that's the General Commands Manual energy, and it's literally all about adding a new worktree π let's get into it π«Ά
π NAME π
git-prole-add β add a new worktree β¨
π SYNOPSIS π
git-prole add [-b|--branch] [-B|--force-branch] [-d|--detach] [--log]
[--dry-run] [--config] [-h|--help] [NAME_OR_PATH] [COMMITISH]
[WORKTREE_ADD_ARGS]
β¨ DESCRIPTION β¨
Add a new worktree. π
This command tries to guess what you want, and as a result the behavior can be a little bit subtle! If given, the --branch argument will always create a new branch, and the COMMITISH argument will always be checked out in the new worktree; use those to disambiguate when necessary.
Unlike git worktree add, this will set new worktrees to start at and track the default branch by default, rather than the checked out commit or branch of the worktree the command is run from. π
By default, untracked files are copied to the new worktree. π¦
π OPTIONS π
-b,--branch=BRANCHβ create a new branch with the given name instead of checking out an existing branch. This will refuse to reset a branch if it already exists; use--force-branch/-Bto reset existing branches. π-B,--force-branch=FORCE_BRANCHβ create a new branch with the given name, overwriting any existing branch with the same name π₯-d,--detachβ create the new worktree in detached mode, not checked out on any branch π--log=LOGβ log filter directives, of the formtarget[span{field=value}]=level, where all components except the level are optional. Default:info. Trydebugortrace. May also be specified with theGIT_PROLE_LOGenvironment variable. π--dry-runβ if set, do not perform any actions, and instead only construct and print a plan π§--config=CONFIGβ the location to read the configuration file from. Defaults to~/.config/git-prole/config.tomlπΈ-h,--helpβ print help (see a summary with'-h') π«Ά[NAME_OR_PATH]β the new worktree's name or path. If the name contains a/, it's assumed to be a path. Otherwise, it's assumed to be a worktree name: it's used as a name in the same directory as the other worktrees, and (by default) a branch with that name is checked out or created. (When this is a path, only the last component of the path is used as the branch name.) β¨[COMMITISH]β the commit to check out in the new worktree. If this is the name of a unique remote branch, then a local branch with the same name will be created to track the remote branch. π[WORKTREE_ADD_ARGS]β extra arguments to forward togit worktree addπ
okay that's the whole page, bestie β signing off with the footer energy: it's add + git-prole-add(1), so that's the source/version side and the page name, and there's no date listed. periodt π
β¨
π¦ where this page comes from
- nixos 26.05: git-prole 0.5.3
- nixpkgs unstable: git-prole 0.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms