Home >Web Front-end >JS Tutorial >Solution to GitHub could not read Username when uploading git
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!