Checking out a PR results in fatal: could not read Username for ...
See original GitHub issue- Extension version: 0.1.4
- VSCode Version: 1.27.1
- OS: MacOS 10.13.6
Steps to Reproduce:
Using an enterprise github instance, I’ve put the following setting:
"github.hosts": [
{
"host": "https://git.some.internal.corp.com",
"token": "..."
}
]
I’m able to then get all the PRs on the repo, see diffs, view comments, but when I right click the PR and do “Checkout Pull Request” I get the following:

fatal: could not read Username for 'https://git....com': Device not configured
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
fatal: could not read Username for 'https://github.com': No such ...
This is an issue with your stored credentials in the system credential cache. You probably have the config variable 'credential.helper' set to ...
Read more >Solving “Fatal: Not A Git Repository” (Or Any Of The Parent ...
In this article, we will explore what causes, how to prevent, and how to solve the “fatal: not a git repository” error.
Read more >Troubleshooting Git - GitLab Docs
If pushing over SSH, first check your SSH configuration as 'Broken pipe' errors can sometimes be caused by underlying issues with SSH (such...
Read more >Getting started with Git and AWS CodeCommit
Confirm that the branch has been pulled in (git branch --all displays a list of all branches for the repository). Switch to the...
Read more >1. Foreman Templates 8.0 Manual
7.2.6 Repository not found. ... 7.2.9 ssh: Could not resolve hostname github.com:user: Name or service not known fatal: Could not read from remote...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve figured out reproduction steps:
For a given PR, if I already have a remote for that user e.g.
then it will work.
But if I do not, then a remote will be created which uses https instead of ssh:
This fails as we use only ssh.
Hope this helps.
Fixed by https://github.com/Microsoft/vscode-pull-request-github/pull/561