-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal: could not read Username for 'https://github.com': Invalid argument #71
Comments
@LaughingBubba I'm not sure. But I don't think it's the error with
if the remote is
|
Hi @loatheb does this mean the ping worked??? > ssh -T git@github.com
Permission denied (publickey). |
@LaughingBubba No. That means you can't use git command to connect with github. Check your ssh public key to make the result like this. |
@tsupol 1- Create a ssh key using Git Bash using following command
After running this command just install the by default options and enter the password balnk when it prompts. 2- Then run the following commands to locate the public/private key generated from step1
3- Then run the following command to view your public:
4- Copy your public key and go to your GitHub account -> settings -> create a SSH and GPG keys then click new ssh key and past your public key in the in key text field. 5- Verify your public key using Git Bash by running the following command:
You will get output like this
Then you no longer got "could not read Username for 'https://github.com': Invalid argument" |
@rashid-softordi thanks above solution works like a charm |
How to make this work if my ssh key have a password? |
@loatheb your solution works fine with me |
BTW: if you have configured your ssh key with a password, and you are on windows, you have to run the command from the GIT Bash prompt. |
update to the lastest git version |
@Zhang21 your solution works fine with me |
@Zhang21 Thanks a lot. |
I solved it by modifying '_config.yml' configuration I tried all above but failed. change remote origin from HTTP URL to ssh URL as noted above
it worked to me |
I could solve the same problem, I do appreciate your guide, @rashid-softordi , @loatheb ! |
@frontalnh This is useful.
|
@frontalnh it's worked for me , thanks! |
@Zhang21 thanks a lot. If someone else met this problem, plz check git version, I replace version 2.11.xx with 2.20.1, It's done! |
@frontalnh thank u |
This helped
|
For me , I met a network issue ,so I use socks5 |
Unexpectedly, after executing |
Error: Spawn failed 발생 hexojs/hexo-deployer-git#71 에서 힌트 얻어서 수정
Hi I'm getting the above when I try to
I'm not the only one to have this problem if you look at the latest comments in the Hexo trouble shooting guide
Indeed I am running on win10, however I suspect it's more likely there's a missing environment variable than not using the git cli.
Here's my repo
hexo deploy console log:
NOTE: I deleted the .deploy_git folder and slipped in a console.log() in the local deployer set up function to make sure the user name was being parsed and I did make a typo.
I also made sure my global git user settings were right
Cheers
The text was updated successfully, but these errors were encountered: