wiki.xw3.org

Welcome to the xw3 Wiki! Powered by hanez

User Tools

Site Tools


git

**This is an old revision of the document!**

Git Notes

Specify the private SSH-key to use when executing a Git command:

ssh-agent bash -c 'ssh-add /home/git/.ssh/key-filename; git $GIT_COMMAND'

Example:

ssh-agent bash -c 'ssh-add /home/git/.ssh/key-filename; git push'

https://stackoverflow.com/questions/4565700/how-to-specify-the-private-ssh-key-to-use-when-executing-shell-command-on-git

git.1574117717.txt.gz · Last modified: 2019-11-18 by hanez