If you want to add a new GitHub origin with new SSH keys for just one project without affecting your existing projects, Here's how you can do it:
-
Generate a New SSH Key: If you haven't already, generate a new SSH key for the new GitHub account. You can do this with the following command:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Replace
your_email@example.com
with your email address. When prompted, specify a file name for the new key (e.g.,id_rsa_newuser
).