Git是分布式版本控制软件,同⼀个Git仓库,可以分布到不同的机器上。
github⽹站就是提供Git仓库托管服务的,所以,只要注册⼀个GitHub账号,就可以免费获得Git远程仓库。github官⽹:https://github.com/
github官⽹-> ⽤户图标-> 设置
公钥在~/.ssh目录下的id_rsa.pub文件中
git remote add origin [email protected]:pythonde/newRepository.git三、查看远程信息
git remote -v四、上传数据到远程库
git push origin dev五、远程库更新本地库
git pull --rebase origin dev六、从远程库下载源码到本地库
git clone [email protected]:pythonde/newRepository.git七、删除连接远程库
git remote rm origin
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)