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 _
    Commented Sep 13, 2018 at 16:35
  • @Nsukami_ thanks your link set me on the right path :)
    – nha
    Commented Sep 14, 2018 at 8:05

1 Answer 1


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 agree to our terms of service and acknowledge you have read our privacy policy.

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