Git Commands - spaceshiptrip/raspberrypi GitHub Wiki
Generate ssh key with a different filename
Generate the key specifying a unique filename to avoid writing over existing key
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519.home -C "[email protected]"
use the -f
option with the filename
Add that key to the ssh config file
vim ~/.ssh/config
Add the following information:
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_ed25519.home
Reset the author for the last commit
git commit --amend --author="spaceshiptrip <[email protected]>"
This only works for the last commit