Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab complete to track remote branches #364

Open
chris-perts opened this issue Apr 4, 2019 · 1 comment
Open

tab complete to track remote branches #364

chris-perts opened this issue Apr 4, 2019 · 1 comment

Comments

@chris-perts
Copy link

If I have origin/foo-branch but not foo-branch I can do this:

myrepo master@ checkout foo-branch
Branch 'foo-branch' set up to track remote branch 'foo-branch' from 'origin'.
Switched to a new branch 'foo-branch'

I'd like to be able to do the same thing but with tab completion.

myrepo master@ checkout foo-[[mash that tab key]]
Branch 'foo-branch' set up to track remote branch 'foo-branch' from 'origin'.
Switched to a new branch 'foo-branch'
@georgebrock
Copy link
Collaborator

@chris-perts Great suggestion, thanks! We should definitely add this to the tab completion system.

In the meantime, you can tab complete the full remote branch name with checkout -t, so something like checkout -t origin/foo-branch could be tab completed with checkout -t or<tab>foo<tab>, which might be quicker than typing out checkout foo-branch.

@georgebrock georgebrock added this to the v1.0 milestone Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants