Git unable to connect to cache daemon

  • Run the command
sudo chown username ~/.git-credential-cache/socket
  • Replace username with your user. If you don’t know your user:
whoami