Skip to contentSkip to conversation

Shell completion for branch names

DISCUSSION [email protected] 1 participant 1 message Apr 7, 2021

lore
Share & tools
lore
#0 lore raw

Hello guys,

I have a question regarding git-completion. I'm using zsh and have added the function .git-completion.bash. That gives me some auto-completion for branch names.

What I'm looking for: I have a branch named "feature/issue-123-add-feature" for example. I'd like to type "git switch 123[tab]". Is there some function out there that provides this?

Cheers
Jost