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地址

posted @ 2022-04-07 13:49  liubingPersonalBlog  阅读(19)  评论(0)    收藏  举报