Last Updated: July 25, 2017
·
642
· vsouza

How to use multiple Github accounts in the same computer

if you want to use more than one github user on your mac osx computer, this tip can be quite useful. You simply add the file .gitconfig this block

[credential]
    helper = osxkeychain
    useHttpPath = true

when you try to clone any repository, credentials will be prompted to you. ;)

4 Responses
Add your response

So does this only apply for https cloning/uploading?

over 1 year ago ·

I think so. I do not really use the ssh method , you tested ?

over 1 year ago ·

what is it on Windows?

over 1 year ago ·

osx keychain is a mac OS X feature, if you wanna use multiple accounts on windows, you might test the ssh method ;)

over 1 year ago ·