Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

git cherry-pick tab completion problem #102

Open
salcode opened this issue Oct 25, 2019 · 1 comment
Open

git cherry-pick tab completion problem #102

salcode opened this issue Oct 25, 2019 · 1 comment

Comments

@salcode
Copy link
Member

salcode commented Oct 25, 2019

git tab completion does not complete git commands,

e.g. git com<tab> does NOT complete to git commit

In #52 we added git cherry-pick-last-n-from-last-branch so I now find myself typing

git cherr<tab> which gives me git cherry-pick-last-n-from-last-branch when I wanted git cherry-pick

@salcode
Copy link
Member Author

salcode commented Oct 26, 2019

If we add an alias that points back to the original

[alias]
	cherry-pick = cherry-pick

this will give us tab completion (even though it does feel rather hacky).

An alternative method to add this alias is to run the following from the command line

git config --global alias.cherry-pick "cherry-pick"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant