Announcement

Collapse
No announcement yet.

worktree status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • worktree status

    Hi,

    I have checked out two working directory using the "git worktree --checkout" command.

    When I run the "git status" in either checked out folder the "On branch <branch name>" displays the branch name from the latest checkout.

    Could you please provide the correct syntax to display the branch name associated with the respective folder.

    Any assistance is greatly appreciated.

    Thanks
    Lakshman



  • #2
    Have you tried using the command "git worktree list" ?

    Comment


    • #3

      Very handy.

      Comment

      Working...
      X