git_tutorials/Lab2/Lab2.md

6 lines
760 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 克隆
指将远端服务器的存储库下载到本地
拿本存储库举例在本地新建一个文件夹进入文件夹右键菜单选择“Git 克隆”弹出克隆窗口在URL输入"http://172.188.24.12:3000/mengfanxing/git_tutorials.git"前面的链接可以在服务器存储库界面复制。点击确定开始克隆等待克隆完成然后在本地文件夹就可以看到名为“git_tutorials”的存储库。
## 拉取
由于服务器存储库不只一个人维护常常出现本地软件版本才V1.0服务器仓库都更新到V1.3的情况。这时可以在本地存储库右键菜单选择“TortoiseGit”然后选择“拉取”点击确认。这样维持服务器和本地的同步。
## 推送