1.利用Xcode自带git工具上传本地项目到GitLab
2017-11-28 本文已影响86人
RBNote
[图片上传中...(2.SourceControl.png-677e81-1511853296027-0)]
借用一张大神的图

git管理项目大致就是一个本地仓库,一个远程仓库,打开Xcode写代码,写完了就commit到本地仓库git就会管理我们提交的代码; 之后 push 到远程仓库,就不怕本地仓库出问题了。
一Xcode 自带git工具 :Source Control
1.创建项目的时候勾选☑️git

2.SourceControl的位置

二:在GitLab、Github、码云(https://gitee.com) 创建远程仓库
这里以公司的GitLab网站为例。


三:利用SourceControl关联远程仓库


将本地仓库和远程仓库进行关联。

四:关联成功:尽情的commit 、push、pull 吧

