Where does magit get push credentials from?

I have been using magit happily for quite some time.

I installed a new (OSX) machine with the same emacs (spacemacs) config I use on other machines, yet for some reason I cannot push from magit on this machine.

On both machines I can git push from my user shell just fine (zsh). Also, I use git and not https repositories with github.

So, what are the things I should check? Where magit gets it's credentials from/what commands does it call/is there an error log somewhere?

  • 1
    Can you tell us what versions are you using? Also, can you show your configuration files? Finally, have you read this answer? – Nsukami _ Sep 13 at 16:35
  • @Nsukami_ thanks your link set me on the right path :) – nha Sep 14 at 8:05

I was having manual steps in my config to load the ssh agent, which made it work in the console, but was not visible for magit. Adding any of the git auth methods works (I did it with the ./ssh/config).

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.