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

git的使用

时间:2017-03-23 22:02:54      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:gitlab   etc   同步   工作   head   master   上下   clone   com   

好吧,很久没有做leetcode了,因为感觉没什么用啊,我又不找工作(别找借口了,就是懒。)

学习一下git的使用吧。。。

首先是从github上下载项目

git clone https://github.com/fffgrdcc/ucore_os_lab

然后是链接其他代码源

git remote add gitlab https://github.com/chyyuu/ucore_os_lab

查看现有远程仓库

git remote -v

如果我要与gitlab标识的仓库同步,只需要

git fetch gitlab master? git rebase FETCH_HEAD

 

git的使用

标签:gitlab   etc   同步   工作   head   master   上下   clone   com   

原文地址:http://www.cnblogs.com/xuwangzihao/p/6607099.html

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