迁移
如果是内网有需要情况下先配置host
克隆仓库
git clone -bare 仓库地址
配置git账号
git config --global user.name ""
git config --global user.email ""
删除原公钥
rm -rf ~/.ssh
重新生成公钥
ssh-keygen -t rsa -C "" -b 4096
查看公钥
cat ~/.ssh/id_rsa.pub
迁移
如果是内网有需要情况下先配置host
克隆仓库
git clone -bare 仓库地址
配置git账号
git config --global user.name ""
git config --global user.email ""
删除原公钥
rm -rf ~/.ssh
重新生成公钥
ssh-keygen -t rsa -C "" -b 4096
查看公钥
cat ~/.ssh/id_rsa.pub