How I can save credentials in Magit?
The best way to do that is to not do it and instead configure git
itself. That way it works on the command-line and in Magit.
There are two problems with that approach:
You have to learn how to configure this aspect of git
and there are many different options available. On the other hand because many more people use git
than Magit, it should be easier to search for relevant documentation and tutorials.
Depending on how you configure git
, these configurations may not carry over to Magit. Typically this happens when a user configures git
in their shell startup file, but then start Emacs by clicking on a symbol. In that case emacs
isn't a child process of, say, bash
and so it does not inherit its environment variables.
Magit actually can remember your password for you and I just improved that functionality a few minutes ago (so make sure to update before trying this out). See the doc-string of magit-process-password-auth-source
, it should have you covered.
git config --global credential.helper wincred
help? help.github.com/articles/caching-your-github-password-in-gitgit config --global credential.helper cache
? help.github.com/articles/caching-your-github-password-in-git/…