git: clone repo with another user's key

ssh-agent bash -c 'ssh-add /home/dgorohov/.ssh/id_rsa; git clone git@gitlab.ru.mgo.su:dit-bitrix/bitrix_rt.git .'

Last updated

Was this helpful?