Sometimes I need to interact with github using multiple ssh-keys. This is how I configure git to do it:
Lets create new rsa key
1
| |
Then configure new key in github
1
| |
When you try to push ssh-key-agent will use your old key. Create/Modify the file ~/.ssh/config
1 2 3 4 | |
Next open .git/config in your project and change url accordingly:
1 2 | |
Now in your project directory you should be able to git push