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

Checkout a remote branch as new local branch #709

Closed
rehbein-dieter opened this issue Apr 11, 2019 · 3 comments

Comments

@rehbein-dieter
Copy link

commented Apr 11, 2019

The context-menu of a remote branch contains a menu item "Checkout". Using that item leads to a detached HEAD.

A second menu item "Checkout as new local branch" would be useful to check it out as a new local branch (if a local branch doesn't already exist).

@eamodio

This comment has been minimized.

Copy link
Owner

commented Apr 12, 2019

@rehbein-dieter do you think the detached HEAD version is worth keeping? I'm thinking about just replacing the Checkout command on remote branches to be what you describe. Thoughts?

@rehbein-dieter

This comment has been minimized.

Copy link
Author

commented Apr 12, 2019

@eamodio Replacement would be perfectly fine for me (I don't think that I've ever used a detached HEAD).
Thanks for the quick response.

@eamodio eamodio added this to the Soonish™ milestone Apr 22, 2019

@raaaaaymond

This comment has been minimized.

Copy link

commented May 23, 2019

Thanks @eamodio for addressing this. Yes I would be happy with replacing the detached HEAD version with checkout as local (but tracking the remote obviously) by default. Indeed, this is the default behaviour of the Jetbrains IDEs (from where I'm switching to VSCode). The detached HEAD version is still useful, but we shouldn't have that as default, in my opinion.

@eamodio eamodio modified the milestones: Soonish™, Soon™ Jul 18, 2019

@eamodio eamodio changed the title Possibility to checkout a remote branch as new local branch Checkout a remote branch as new local branch Jul 18, 2019

@eamodio eamodio closed this in 95fbe81 Jul 21, 2019

@eamodio eamodio removed this from the Soon™ milestone Jul 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.