All solutions I've seen so far assume that I want to use a certain key statically. Whereas I want to use a key dynamically: I want to specify what key to use as I run a git command every time. One time I want to be able to use one key, next time -- another.
I've tried this:
# 1
$ git pull origin master -i ~/.ssh/id_ed25519
error: unknown switch `i'
usage: git pull [<options>] [<repository> [<refspec>...]]
# 2
$ git pull -i ~/.ssh/id_ed25519 origin master
error: unknown switch `i'
usage: git pull [<options>] [<repository> [<refspec>...]]
How can I do this?
GIT_SSH_COMMAND
?