# [GitHub] Add multiple git users with ssh keys ## Create ssh key pair for github ```sh! cd ~/.ssh ssh-keygen -t rsa -b 4096 -C "user@gmail.com" ssh-add ~/.ssh/github ssh-add -l ``` ## Put the public key to github ## Setup git config ```sh! git clone git@github.com:$GITHUB_USER/$GITHUB_REPO.git cd $GITHUB_REPO git init git config user.email 'user@gmail.com' git config credential.helper store git config -l ``` ## Reference * https://gist.github.com/jexchan/2351996
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up