emacsgithubmagit

Magit save password and username


Magit is a good option for using Github. When I want to push my commits to Github, it always asks my username and password. How can Emacs save my password?

Best regards.


Solution

  • This hasn't much to do with Magit. If you configure Git correctly, then it also works in Magit. Either use a ssh key or credential.helper. I recommend the former, but then you also have to configure an ssh-agent and how that is done might differ between distributions.