码迷,mamicode.com
首页 > 其他好文 > 详细

git

时间:2018-09-28 22:40:06      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:ted   detail   csdn   com   art   one   远程仓库   内容   git push   

本地仓库与远程仓库关联
1.从远程克隆一份到本地可以通过git clone

Git支持HTTPS和SSH协议,SSH速度更快

$ git clone git@github.com:nanfei9330/xx.git

2.本地库关联远程库,在本地仓库目录运行命令:

git remote add origin git@github.com:/GRLGRL/iqiyi.test   // :后面的换成自己项目的地址

3.推送master分支的所有内容,在推送之前先要pull下远程版本
git pull origin master --allow-unrelated-histories
git push -u origin master (第一次push加上-u参数,以后就可以直接使用git push origin master)

--------------------- 本文来自 南乡紫 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/u012804035/article/details/78259560?utm_source=copy 

 

git

标签:ted   detail   csdn   com   art   one   远程仓库   内容   git push   

原文地址:https://www.cnblogs.com/ghming/p/9721279.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!