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

Combine "git checkout branch" and "git checkout remote branch as local" #371

Closed
stevage opened this issue Mar 15, 2016 · 1 comment · Fixed by #714
Closed

Combine "git checkout branch" and "git checkout remote branch as local" #371

stevage opened this issue Mar 15, 2016 · 1 comment · Fixed by #714

Comments

@stevage
Copy link
Contributor

stevage commented Mar 15, 2016

I find this split a little bit clumsy and counterintuitive. Why not just list all remote branches below local ones:

foo
blah
origin/foo
origin/bar
mine/blah

In particular this would remove the confusing error that happens when you try to "checkout remote branch as local" a branch that you have previously checked out.

@divmain
Copy link
Collaborator

divmain commented Mar 15, 2016

Agreed, these don't need to be separate, especially since the second command doesn't prompt for a local branch name. We'll be doing a 3.0 release which includes breaking changes, so I'll try to include this change with the rest of it.

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

Successfully merging a pull request may close this issue.

3 participants