C语言寒假大作战01
| 这个作业属于哪个课程 | https://edu.cnblogs.com/campus/zswxy/SE2019-4/ |
|---|---|
| 这个作业要求在哪里 | https://edu.cnblogs.com/campus/zswxy/SE2019-4/homework/10252 |
| 这个作业的目标 | Gitee 与 git基础命令学习与使用 |
| 作业正文 | https://gitee.com/woshidengwudi |
| 其他参考文献 | 百度文献 |
1.1 码云界面


1.2 Git界面

1.3 本地仓库截图

1.4 学习命令
一、提交代码
1、提交代码到本地库中
git commit -m '描述内容'
2、拉取该分支下的内容,与自己在本地库改写的合并
git pull origin <分支名称>
3、提交代码到github上
git push origin <分支名称>
二、合并代码
1、查看所有分支(其中带 * 号的:当前使用分支)
git branch -a
2、切换分支
git checkout <分支名称>
3、合并某分支到当前分支:
git merge <分支名称> : 把develop 合并到master–> git merge develop
4、提交合并的代码 :
git pull :拉取当前仓库的代码
git push origin <分支名称> 合并提交 到主分支上
额外补充
用到的git命令:
1、创建分支:
git branch <分支名称>
2、查看所有分支
git branch -a
3、切换分支
git checkout <分支名称>
4、合并某分支到当前分支:
git merge <分支名称>
5、创建+切换分支:
git checkout -b <分支名称>
1.5 主页地址
https://gitee.com/woshidengwudi
20199485.txt

浙公网安备 33010602011771号