标签: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
标签:gitlab etc 同步 工作 head master 上下 clone com
原文地址:http://www.cnblogs.com/xuwangzihao/p/6607099.html