worktree status

ssrilaks
ssrilaks
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 " 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

Last updated

DougR
DougR
Have you tried using the command "git worktree list" ?
Lesley
Lesley
Very handy.

1-3 of 3

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
493 views