1 year ago

#367423

test-img

Michal Ružička Ružička

Change git account terminal

Since I have multiple git accounts (work_account and personal_account) I am trying to change to my personal account by running:

git config --global user.name 'personal_account'
git config --global user.email 'personal_account@gmail.com'

And:

ssh-add ~/.ssh/personal_account_key

But after all of that, the command ssh -T git@github.com keeps displaying that I am authenticated with my work account:

# ssh -T git@github.com
Hi work_account! You've successfully authenticated, but GitHub does not provide shell access.

How can I change it?

git

github

ssh-keys

0 Answers

Your Answer

Accepted video resources