question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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: screen shot 2018-09-13 at 2 33 07 pm

fatal: could not read Username for 'https://git....com': Device not configured

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bwhittycommented, Sep 26, 2018

I’ve figured out reproduction steps:

For a given PR, if I already have a remote for that user e.g.

user1	git@git.blah.corp.com:user1/repo.git

then it will work.

But if I do not, then a remote will be created which uses https instead of ssh:

user1	https://git.blah.corp.com/user1/repo

This fails as we use only ssh.

Hope this helps.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found