git-prole-convert(1)

πŸ“¦ version 0.5.3, in nixos 26.05, nixpkgs unstable

πŸ’… git-prole-convert(1) β€” the one where we turn your repo into a worktree checkout

okay so bestie, this page lives in the General Commands Manual and it's called git-prole-convert πŸŽ€ β€” say hi to the manual, she's here to help you glow up your repo situation. let's get into it ✨


🌸 NAME 🌸

git-prole-convert β€” convert a repository into a worktree checkout πŸ¦‹


✨ SYNOPSIS ✨

git-prole convert [--default-branch] [--log] [--dry-run] [--config]
[-h|--help] [DESTINATION]

literally just that. drop it in and let her cook πŸ”₯


πŸ’– DESCRIPTION πŸ’–

Convert a repository into a worktree checkout. that's the whole vibe πŸ’…

so here's the tea β€” this will convert the repository in the current directory into a worktree repository. and "convert" here is doing a lot of heavy lifting, so let me break down exactly what that includes, no cap:

  • Making the repository a bare repository.
  • Converting the current checkout (branch, commit, whatever it happens to be) into a worktree. Uncommited changes will be kept, but will not remain unstaged πŸ‘€ β€” yes that means what you think it means, heads up.
  • Creating a new worktree for the default branch.

it's giving main character energy for your repo directory. iconic behavior fr fr πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • --default-branch=DEFAULT_BRANCH β€” a default branch to create a worktree for 🌱
  • --log=LOG [default: info] β€” log filter directives, of the form `target[span{field=value}]=level`, where all components except the level are optional πŸͺ΅ β€” try `debug` or `trace` if you're nosy like me πŸ‘€. May also be specified with the GIT_PROLE_LOG environment variable.
  • --dry-run β€” if set, do not perform any actions, and instead only construct and print a plan πŸ“ β€” not me doing a vibe check before committing to anything, bestie this is self care πŸ’†β€β™€οΈ
  • --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') πŸ™‹β€β™€οΈ
  • [DESTINATION] β€” the directory to place the worktrees into πŸ“¦
lowkey important: --dry-run means nothing actually happens, it just constructs and prints a plan. so don't come for me when your repo is still exactly the same afterwards 😭

πŸ¦‹ SEE ALSO πŸ¦‹

(there's no SEE ALSO section on this page β€” she's the standalone queen she is πŸ’…)

well ok not technically a section but like, this page doesn't have one, so we're just gonna vibe 🫢


huge thanks to the git-prole girlies β€” this one's sourced from convert, filed under git-prole-convert(1), version + date included in the header up at the top because apparently that's where it lives now πŸ’œ go forth and worktree, bestie. periodt πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from