I'm having an app and trying to push it to a Private rep but not sure why I'm getting this error: Code didn't show up on GitHub
>git push -u origin main
fatal: credential-cache unavailable; no unix socket support
Everything up-to-date
Branch 'main' set up to track remote branch 'main' from 'origin'.
Somewhere in your configuration, you have a credential helper set to cache
and on your system you don't have Unix socket support, almost certainly because your system is Windows. (If you are on a Unix system, your system is seriously misconfigured.)
You should run git config -l --show-origin
to find out where you've set the credential.helper
option to cache
and remove that entry, since the credential helper won't work in your version of Git.
Note that newer versions of Windows 10 do offer Unix sockets, but by default Git is not compiled to use them on Windows.
That starts to change with Git 2.34 (Q4 2021), which adjusts credential-cache
helper to Windows.
See commit bb390b1, commit 245670c, commit 0fdcfa2 (14 Sep 2021) by Carlo Marcelo Arenas Belón (carenas
).
(Merged by Junio C Hamano -- gitster
-- in commit c2e7990, 23 Sep 2021)
git-compat-util
: include declaration for unix sockets in windowsSigned-off-by: Carlo Marcelo Arenas Belón
Available since Windows 10 release 1803 and Windows Server 2019.
NO_UNIX_SOCKETS
is still the default for Windows builds, as they need to keep backward compatibility with releases up to Windows 7, but allow including the header otherwise.
To delete the entry for helper, do:
git config --global --unset credential.helper
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With