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

Solution to GitHub could not read Username when uploading git

一个新手
一个新手Original
2017-10-14 10:24:308391browse

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

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

After modification

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

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!

Statement:
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