git的使用

好吧,很久没有做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

 

posted @ 2017-03-23 20:18  徐王  阅读(157)  评论(0)    收藏  举报