Git介紹及注冊

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

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內(nèi)容