You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had #1873 reported earlier which feels similar, but you've provided more detail here for us to work with so I'm going to close that one in favour of this.
So there's two things to distinguish here in the "Publish Repository" flow:
creating the repository using the GItHub API - this seems to have succeeded
publishing the commits on your current branch - this is the error you're seeing
The latter requires us to set up a GIT_ASKPASS environment which passes your credentials to git.exe as part of the git push. I'm not entirely sure why this is happening, but that's some context to help start things off!
@Richred Can you check to see if C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat exists on your machine?
I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.
@joshaber, @shiftkey After a while, I had problems with the nodejs, and I decided to reinstall Windows. And now GitHub Desktop works.
Thank you very much for participating in solving the problem!
Could you check to see if this registry entry has possibly been modified on your machine?
We've also seen special characters in Windows user account names cause this, but that does not look like it would be an issue in this instance. It would also be helpful to know if you are running any antivirus/security software that could be interfering with GitHub Desktop.
I checked my registry. The picture is below. I looked at the information on the Internet and didn't find that I had changed it.
Is there any possibility of other wrong reasons?
Thank you very much for your help.
------------------ 原始邮件 ------------------
发件人: "Steve Ward"<[email protected]>;
发送时间: 2019年6月7日(星期五) 凌晨2:16
收件人: "desktop/desktop"<[email protected]>;
抄送: "who care"<[email protected]>;"Mention"<[email protected]>;
主题: Re: [desktop/desktop] Cannot spawn the ask-pass-trampoline (#1916)
@cjingcheng we have seen a few causes of this error. One common one has been the modification of the following registry entry:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun
Could you check to see if this registry entry has possibly been modified on your machine?
We've also seen special characters in Windows user account names cause this, but that does not look like it would be an issue in this instance. It would also be helpful to know if you are running any antivirus/security software that could be interfering with GitHub Desktop.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
------------------ 原始邮件 ------------------
发件人: "AnokhinaM"<[email protected]>;
发送时间: 2019年7月25日(星期四) 下午2:28
收件人: "desktop/desktop"<[email protected]>;
抄送: "who care"<[email protected]>;"Mention"<[email protected]>;
主题: Re: [desktop/desktop] Cannot spawn the ask-pass-trampoline (#1916)
Hello, I have the same issue.
Have you solved it?
Do you need any screenshots or any other information?
I've reinstalled GitHub several times, now I have versions installed: 2.1.0, 2.0.4, 2.03 - all of them gives the error.
In my registry I don't have such registry entry at all:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
@Richred Can you check to see if C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat exists on your machine?
I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.
My file doesnot exist what should i do i have re-installed it already;
@steveward - Do we have a better solution here than "reinstall Windows"? My error is slightly different in that it says "No error" after ask-pass-trampoline.bat instead of "No such file or directory". I've uninstalled and reinstalled Github Desktop, rolled back settings, gone back to all available System Restore Points, etc.
@Richred Can you check to see if C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat exists on your machine?
I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.
Activity
shiftkey commentedon Jun 7, 2017
We had #1873 reported earlier which feels similar, but you've provided more detail here for us to work with so I'm going to close that one in favour of this.
So there's two things to distinguish here in the "Publish Repository" flow:
The latter requires us to set up a
GIT_ASKPASSenvironment which passes your credentials to git.exe as part of thegit push. I'm not entirely sure why this is happening, but that's some context to help start things off!richvoronov commentedon Jun 7, 2017
I will wait for update that solves the problem. Thanks!
joshaber commentedon Jun 7, 2017
@Richred Can you check to see if
C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.batexists on your machine?I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.
richvoronov commentedon Jun 7, 2017
@joshaber I've checked this before. I reinstalled the program several times
[-]cannot spawn [/-][+]Cannot spawn the ask-ass-trampoline[/+][-]Cannot spawn the ask-ass-trampoline[/-][+]Cannot spawn the ask-pass-trampoline[/+]richvoronov commentedon Jun 11, 2017
@joshaber, @shiftkey After a while, I had problems with the nodejs, and I decided to reinstall Windows. And now GitHub Desktop works.
Thank you very much for participating in solving the problem!
joshaber commentedon Jun 13, 2017
Great, thanks for letting us know!
whocaresorz commentedon Jun 6, 2019
what do i have to do,when i face that
steveward commentedon Jun 6, 2019
@cjingcheng we have seen a few causes of this error. One common one has been the modification of the following registry entry:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorunCould you check to see if this registry entry has possibly been modified on your machine?
We've also seen special characters in Windows user account names cause this, but that does not look like it would be an issue in this instance. It would also be helpful to know if you are running any antivirus/security software that could be interfering with GitHub Desktop.
whocaresorz commentedon Jun 9, 2019
AnokhinaM commentedon Jul 25, 2019
Hello, I have the same issue.
Have you solved it?
Do you need any screenshots or any other information?
I've reinstalled GitHub several times, now I have versions installed: 2.1.0, 2.0.4, 2.03 - all of them gives the error.
In my registry I don't have such registry entry at all:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun
AnokhinaM commentedon Jul 25, 2019
in 2.0.4 version I click the button "Push" and get the error:

in 2.1.0 version I click the button "Push" and get the error:

whocaresorz commentedon Jul 25, 2019
steveward commentedon Jul 25, 2019
@AnokhinaM and @cjingcheng the registry entry can also be modified in the following location:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ AutoRunI would check there as well to see if that has been modified.
Sameedahmad commentedon Dec 3, 2019
My file doesnot exist what should i do i have re-installed it already;
markc-dsoft commentedon Mar 31, 2020
What should the value of the AutoRun entry be?
steveward commentedon Apr 1, 2020
@markc-dsoft I'd recommend leaving it empty/deleting it -- see this blog for some interesting insights into how it can affect your system.
markc-dsoft commentedon Apr 2, 2020
@steveward - Do we have a better solution here than "reinstall Windows"? My error is slightly different in that it says "No error" after ask-pass-trampoline.bat instead of "No such file or directory". I've uninstalled and reinstalled Github Desktop, rolled back settings, gone back to all available System Restore Points, etc.
markc-dsoft commentedon Apr 2, 2020
@Sameedahmad replied:
If you're not using version 0.5.9, substitute your actual version # in the path when you look for the ask-pass-trampoline.bat file
markc-dsoft commentedon Apr 9, 2020
Here's a solution: put the username and password/token in the URL
more discussion and solutions here (stackoverflow.com)
Coloured-glaze commentedon Sep 25, 2021
I re-install him and the problem was solved.