Forrest logo
back to context overview

git-worktree

List of commands for git-worktree:

  • git-worktree:tldr:13a11 git-worktree: List all the working directories attached to this repository.
    $ git worktree list
    try on your machine
    explain this command
  • git-worktree:tldr:27256 git-worktree: Create a new directory with the specified branch checked out into it.
    $ git worktree add ${path-to-directory} ${branch}
    try on your machine
    explain this command
  • git-worktree:tldr:2b1f7 git-worktree: Create a new directory with a new branch checked out into it.
    $ git worktree add ${path-to-directory} -b ${new_branch}
    try on your machine
    explain this command
  • git-worktree:tldr:73fa2 git-worktree: Remove a worktree (after deleting worktree directory).
    $ git worktree prune
    try on your machine
    explain this command
back to context overview