-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buggitGIT issuesGIT issueshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesverifiedVerification succeededVerification succeeded
Milestone
Description
- VSCode Version: 1.25.1
- OS Version: Ubuntu 16.04.4 amd64
Steps to Reproduce:
- Run:
git init --bare origin
git init --bare upstream
git clone origin clone
cd clone
git remote add upstream $(readlink -f ../upstream)
touch hello.txt
git add hello.txt
git commit -m "Initial Commit"
git checkout -b hello-text
echo 'Hello, World!' > hello.txt
git add hello.txt
git commit -m 'Add Hello, World! text'
git checkout master
git push -u origin master
git push -u origin hello-text
git push upstream master
git push upstream hello-text
git branch -D hello-text
code .- Execute
Git: Checkout to...onorigin/hello-text. - You get an error
Git: pathspec 'hello-text' did not match any file(s) known to git..
The cause is VS Code running: git checkout q <branch-name>, which only works when the branch exists in exactly one remote (See git-checkout(1)), instead of something like: git checkout -q -t <remote>/<branch> , or any alternative more verbose/explicit git checkout command.
Does this issue occur when all extensions are disabled?: Yes
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buggitGIT issuesGIT issueshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesverifiedVerification succeededVerification succeeded