Windows之git安装
git安装,ssh key生成与查看,代码仓库迁移

ssh-keygen -t rsa -C "你的邮箱名.com"
$ ssh-keygen -t rsa -C "你的邮箱名.com"
$ cd .ssh
$ ls
id_rsa id_rsa.pub
$ cat id_rsa.pub

代码迁移
git clone --bare 旧的git地址
cd xxx.git
git push --mirror 新的git地址
git clone 新的git地址
git安装,ssh key生成与查看,代码仓库迁移

ssh-keygen -t rsa -C "你的邮箱名.com"
$ ssh-keygen -t rsa -C "你的邮箱名.com"
$ cd .ssh
$ ls
id_rsa id_rsa.pub
$ cat id_rsa.pub

代码迁移
git clone --bare 旧的git地址
cd xxx.git
git push --mirror 新的git地址
git clone 新的git地址