Cannot publish repository - could not read username
See original GitHub issueHello,
I just started using Github today. As I’m trying to follow a guide, I realize I am unable to publish a repository. It prompts an error that says
error: cannot spawn C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\static\ask-pass-trampoline.bat: No error fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
I looked through the support link on trampoline.bat and followed the steps, but it still doesn’t work. 1.) I don’t have an autorun file. 2.) I turned off the antivirus 3.) I ran as admin 4.) it doesn’t seem like I have special characters in my username (unless it refers to my email then I guess there’s an “@”) 5.) I’ve uninstalled and reinstalled and it’s still bugged.
2020-07-09T10:32:11.450Z - info: [ui] [AppStore] loading 4 repositories from store 2020-07-09T10:32:11.452Z - info: [ui] [AppStore] found account: goofycomp (goofycomp) 2020-07-09T10:32:11.995Z - info: [ui] launching: 2.5.3 (Windows 10.0.18362) 2020-07-09T10:32:11.995Z - info: [ui] execPath: ‘C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\GitHubDesktop.exe’ 2020-07-09T10:32:26.108Z - info: [ui] [BranchPruner] No branches to prune. 2020-07-09T10:32:27.075Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.054s) 2020-07-09T10:32:27.076Z - error: [ui]
git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin
exited with an unexpected code: 128. stderr: error: cannot spawn C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\static\ask-pass-trampoline.bat: No error fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
2020-07-09T10:32:31.435Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping 2020-07-09T10:32:32.538Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.026s) 2020-07-09T10:32:32.540Z - error: [ui]
git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin
exited with an unexpected code: 128. stderr: error: cannot spawn C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\static\ask-pass-trampoline.bat: No error fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
2020-07-09T10:32:39.078Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: keyboard-test1 - goofycomp (has token) 2020-07-09T10:32:40.062Z - error: [ui]
git -c credential.helper= -c protocol.version=2 push origin master --set-upstream --progress
exited with an unexpected code: 128. stderr: error: cannot spawn C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\static\ask-pass-trampoline.bat: No error fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
2020-07-09T10:32:48.119Z - info: [ui] [AppStore] loading 1 repositories from store 2020-07-09T10:32:48.121Z - info: [ui] [AppStore] found account: goofycomp (goofycomp) 2020-07-09T10:32:49.169Z - info: [ui] launching: 2.5.3 (Windows 10.0.18362) 2020-07-09T10:32:49.170Z - info: [ui] execPath: ‘C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\GitHubDesktop.exe’ 2020-07-09T10:33:05.442Z - error: [ui]
git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin
exited with an unexpected code: 128. stderr: error: cannot spawn C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\static\ask-pass-trampoline.bat: No error fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
2020-07-09T10:33:12.452Z - info: [ui] [AppStore] adding repository at C:\Github\testing-bug to store 2020-07-09T10:33:20.598Z - error: [ui]
git -c credential.helper= -c protocol.version=2 push origin master --set-upstream --progress
exited with an unexpected code: 128. stderr: error: cannot spawn C:\Users\donal\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\static\ask-pass-trampoline.bat: No error fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
Here is my log. Please let me know what I can do to provide more info. Looking forward to someone helping me solve my problem. Thanks in advance!
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
@goofycomp thanks for the report. Just to confirm, did you check both
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
andHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\
forautorun
entries? Could you try creating a new user account on this machine to see if you are able to perform Git operations successfully there?Thanks for the report @alexjfy. Please refer to our help document for steps about how to resolve this issue on your machine. One of the more common causes has been the modified Registry entries. Let me know if you have any questions about the steps.