Reason For TortoiseGit - "github --credentials store: github: command not found"

Posted at




GitHub and git builds for windows, are periodically updated in version,
when they do, the github.exe path location changes.

for example (I'm using 8.3 short path, and I suggest you'll use it too)

it used to be:
C:\\Users\\Elad\\AppData\\Local\\Apps\\2.0\\GXTY5G8Y.XNA\\OAZ2PXZR.G47\\gith..tion_317444273a93ac29_0002.000e_114545a4195e25d4

and now it is
C:\\Users\\Elad\\AppData\\Local\\Apps\\2.0\\GXTY5G8Y.XNA\\OAZ2PXZR.G47\\GITHTI~4.000\\

or
C:\\Users\\Elad\\AppData\\Local\\Apps\\2.0\\GXTY5G8Y.XNA\\OAZ2PXZR.G47\\GITHTI~3.000\\

so if you are using TortoiseGit and every now and again you are getting the dialog box (SshAskPass.exe)
right after showing the following errors:
github --credentials store: github: command not found
github --credentials store: github: command not found
....


*git-remote-https.exe uses the following path:
"C:\\Program Files\\TortoiseGit\\bin\\SshAskPass.exe" "Password for 'https://[[your github username]]@github.com':


now you know why,

locate the github.exe in it's new path,
use the 8.3 path (a.k.a short path) and replace the old value in your registry or open C:\\Windows\\system32\\systempropertiesadvanced.exe (system properties - advanced)
and update it manually...