Vscode-gitlens: Checkout a remote branch as new local branch

Created on 11 Apr 2019  路  4Comments  路  Source: eamodio/vscode-gitlens

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).

improvement

Most helpful comment

@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.

All 4 comments

@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?

@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.

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.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertzauner picture robertzauner  路  3Comments

batjko picture batjko  路  4Comments

JP-Ellis picture JP-Ellis  路  3Comments

mindpivot picture mindpivot  路  4Comments

eamodio picture eamodio  路  3Comments