git clone 免秘钥

git clone 免秘钥

ssh-keygen -t rsa -C "http://git.gaofeng.com"
git config --global user.name "gaofeng"
git config --global user.email "1234567."
vim .git-credentials
http://gaofeng:1234567.@git.gaofeng.com:83
https://gaofeng:1234567.@github.com
git config --global credential.helper store
cat ~/.gitconfig
git config --global core.autocrlf false
git config -l
cat ~/.gitconfig

然后再去gitlab把本机的id_rsa.pub 弄到gitlab sshkey即可 实现 git clone xxx.git 免秘钥
先手动成功clone 一次才能,然后才能实现免秘克隆
如果你本身做了秘钥  切记备份 ..还有 要生成别的秘钥对 不要覆盖了你的本身的秘钥
比如:
ssh-keygen -t rsa -C "http://srv.dataexa.com" -f ~/.ssh/id_rsa_python

posted on 2020-02-27 20:16  石圪节胡德禄  阅读(752)  评论(0编辑  收藏  举报

导航