Last active
November 27, 2022 15:42
-
-
Save Blaisorblade/aa6f486d303bd20e64ca764061f32397 to your computer and use it in GitHub Desktop.
git: Display with git-show-branch branches that are checked out with worktrees.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Display with show-branch branches that are checked out with worktrees | |
git show-branch $(git worktree-branches) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# List branches that are checked out with worktrees | |
git worktree list --porcelain | sed -ne 's!^branch refs\/heads/!!p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment