Home > Web Front-end > JS Tutorial > Solution to GitHub could not read Username when uploading git

Solution to GitHub could not read Username when uploading git

一个新手
Release: 2017-10-14 10:24:30
Original
8501 people have browsed it

Gitversion 1.8.5.2

Execute git push command exception, as follows:

1    Push failed
2             Failed with error: unable to read askpass response from     
'C:\Users\eddy\.WebStorm2017.1\system\tmp\intellij-git-askpass.bat'
3             failed to execute prompt script (exit code 1)
4             could not read Username for 'http://gitlab.qdum.com': No error
Copy after login

Cause

There is no user identity information in the config file under the .git file

Solution

Just add identity information to the request string, the format is:

https://[userName]:[password]@github.com/[username]/project.git
Copy after login

After modification

1 [remote "origin"]
2     url =  
3     fetch = +refs/heads/*:refs/remotes/origin/*
Copy after login

Note: 1111111 represents the password, here is Example

The above is the detailed content of Solution to GitHub could not read Username when uploading git. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template