Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure Magit to use my Github user name?

I just configured my IRC user name for ERC with (setq erc-nick "name").

Is there a similar variable for Magit, so it knows my Github username. If not, is there some ELisp I could write to add a hook to Magit or something like that?

like image 786
mwfogleman Avatar asked Oct 01 '22 06:10

mwfogleman


1 Answers

Here is how to set your configuration using the command-line:

/usr/local/git/bin/git config --global github.token 123456789

/usr/local/git/bin/git config --global github.user tiago

/usr/local/git/bin/git config --global user.name tiago

/usr/local/git/bin/git config --global user.email [email protected]

;; for OSX
/usr/local/git/bin/git config --global credential.helper osxkeychain

/usr/local/git/bin/git config --global core.excludesfile ~/.gitignore_global
like image 101
lawlist Avatar answered Oct 15 '22 01:10

lawlist