Skip to content

Git autocompletion should ignore the remote part in branch name #2628

@Kauko

Description

@Kauko

This was first reported and supposedly fixed in #675, but I can't get it to work.

Git has a feature where if the user types git checkout foo and a local branch does not exist by that name, git will check whether there are remote branches by that name, and if git finds any, a new tracking branch is set up and checked out.

Fish's git autocomplete should use this feature. When I type git checkout some-featI want it to autocomplete to git checkout some-feature, instead of git checkout origin/.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions