Git介绍及注册
git介绍
git(https://github.com/) 是分布式版本控制技术
SVN是集中式管理版本控制技术
代码托管平台:github,码云,gitlab等
第一步 注册github及创建仓库
第二步 生成公钥和密钥
命令: ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
执行完上述代码会在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
作者:奇妙雨
链接:https://www.jianshu.com/p/8e46ca91bffd
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。