Push to origin failed

Hello, I’m trying to push some code I made to origin, but Im greeted by an error message that follows: error: cannot spawn C:\Users<confidential>\AppData\Local\GitHubDesktop\app-2.6.3\resources\app\static\ask-pass-trampoline.bat: Permission denied
fatal: could not read Username for ‘https://github.com’: terminal prompts disabled. Can anyone help me and tell me what to do?


Hi @Gummybear405, welcome to the community

I experienced and investigated what is likely to be the same problem on a corporate Win 10 device with some stricter group security policy settings configured when attempting a git clone of a private repository , as it calls the same ‘bat’ file to determine username credentials (not a problem for clonng public as authentication is not required).
It worked without problem on a personal Win 10 device I use for my own work.

For cloning private the error message was

Cloning into blah, blah…
The program is blocked by group policy. For more information, contact your system administrator
error: unable to read askpass response from ‘C:\Users\AppData\Local\GitHubDesktop\app-2.6.2\resources\app\static\ask-pass-trampoline.bat’
fatal: could not read Username for ‘https://github.com’ terminal prompts disabled

A couple of options for you are
a) Launch GitHub Desktop as administrator (right click, select ‘More’, select ‘Run as administrator’), O found this worked in my example
b) Clone using SSH ( I suspect will work), although that will require additional configuration and setup to use

The underlying problem here is that GitHub Desktop internally executing a ‘bat’ command, as this is a potential attack vector, but that’s separate discussion.

Let us know if this solves works around your problem or not.
Good luck

1 Like

Oh my gosh, thank you! I ran the application as an administrator and pushed it again. It worked! Thank you so much for your help. :slight_smile:

@Gummybear405 great news :), if you mark the answer as solved in the post, it will show better up for anyone looking who has the same problem.
Good luck with the rest of you work.