Linux: Git
- TAGS: Linux
指定ssh密钥文件
git_addr='git@gitlab.xx.com:group1/ops.git' tmp_path='~/.jasper/jenkinsfile' git config core.sshCommand "ssh -i ${tmp_path}/id_rsa" #更换key git clone -c "core.sshCommand=ssh -i ${tmp_path}/id_rsa" $git_addr #克隆指定
协议替换
git config --global url."https://".insteadOf git://