git介紹
git(https://github.com/)? 是分布式版本控制技術
SVN是集中式管理版本控制技術
代碼托管平臺:github,碼云,gitlab等
第一步? 注冊github及創(chuàng)建倉庫
第二步 生成公鑰和密鑰
命令: ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
執(zhí)行完上述代碼會在C:\Users\Dell.ssh生成兩個文件
第三步本地添加郵箱和用戶名
? git config --global user.email "you@example.com"
? git config --global user.name "Your Name"
第四步 克隆倉庫
git clone 倉庫地址
例如:git clone? git@github.com:liyu888666/testpro.git
ssh:? git@github.com:liyu888666/testpro.git
https:? https://github.com/liyu888666/testpro.git