gh-pages: fatal: could not read Username for 'https://github.com': No error
Running under Windows 10.
“Nothing changed” in my local config. I was able to to a git push just prior to trying this deploy, so I can communicate with the repo via CLI.
I’d not pop up here, but I’ve been at this for a couple hours now and haven’t made progress. Git CLI doesn’t show a Username object, just a user object.
SET NODE_DEBUG=gh-pages&&yarn run deploy
yarn run v1.3.2 $ gatsby build && gh-pages -d public -b master success delete html files from previous builds — 0.071 s success open and validate gatsby-config.js — 0.009 s success copy gatsby files — 0.063 s success onPreBootstrap — 0.773 s success source and transform nodes — 0.070 s success building schema — 0.188 s success createLayouts — 0.025 s success createPages — 0.001 s success createPagesStatefully — 0.028 s success onPreExtractQueries — 0.001 s success update schema — 0.105 s success extract queries from components — 0.016 s success run graphql queries — 0.017 s success write out page data — 0.015 s success write out redirect data — 0.002 s success onPostBootstrap — 0.001 s
info bootstrap finished - 4.406 s
success Building CSS — 4.831 s success Building production JavaScript bundles — 8.772 s success Building static HTML for pages — 2.957 s info Done building in 20.976 sec GH-PAGES 14240: Cloning https://github.com/cpilson/cpilson.github.io.git into node_modules\gh-pages.cache\aHR0cHM6Ly9naXRodWIuY29tL2NwaWxzb24vY3BpbHNvbi5naXRodWIuaW8uZ2l0 GH-PAGES 14240: Cleaning GH-PAGES 14240: Fetching origin GH-PAGES 14240: Checking out origin/master GH-PAGES 14240: Removing files GH-PAGES 14240: Copying files GH-PAGES 14240: Adding all GH-PAGES 14240: Committing GH-PAGES 14240: Pushing fatal: HttpRequestException encountered. An error occurred while sending the request. bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for ‘https://github.com’: No error
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 26
Try adding this into your git config
or via console
Came across this:
https://github.com/Microsoft/Git-Credential-Manager-for-Windows
I was running git version 2.11. Updated to 2.16 and everything is working fine now.
EDIT: clarify, I’m able to publish as before.
I am getting this error running the command on Ubuntu in a Github workflow.
hi. solved my problem with this command in cmd
git config --global credential.helper wincred
This sure looks promising, @tadachi
When I get back to my desktop I’ll gice this a shot. Good find!
EDIT: again, good find! I was running
git version 2.15.0.windows.1. I’ve now updated togit version 2.16.2.windows.1and have just run a successfulyarn deployscript. Thank you!thanks man!
git update
this worked for me
Yep can confirm. updating git to latest version (2.19.1) solved the issue
I had this problem. Updating git from version
2.16.2.windows.1to2.19.1.windows.1resolved it for me.I had the same issue, running
git version 2.15.0.windows.1I have also updated to the most recent versiongit version 2.17.0.windows.1and have just published my project to gh-pages. Thanks for the hint!