Git push from different ssh

This Project for CommandLine Applications. includes configs and documentation. https://mrinjamul.github.io/unTutorials

Git push from different ssh

export GIT_SSH_COMMAND='ssh -i ~/.ssh/your_private_key'

[Note: This is for the current terminal session]

For one one command,

GIT_SSH_COMMAND='ssh -i ~/.ssh/your_private_key' git push origin master

Go Back