- Create a script called: git_ssh_wrapper.sh
- Give the script executable permissions:
chmod 777 git_ssh_wrapper.sh - The contents of the script should look like the following:
#!/bin/bash
ssh -i /home/user/RSA_Keys/id_rsa $1 $2 - Export variable GIT_SSH:
export GIT_SSH=~/git_ssh_wrapper.sh - Clone the repository as usual:
git clone user@server.com/repository.git
No comments:
Post a Comment
If you like this post, please leave a comment :)