# golang5 **Repository Path**: kevin-bruce/golang5 ## Basic Information - **Project Name**: golang5 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-16 - **Last Updated**: 2021-06-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go5 #### 介绍 Go5班级作业仓库 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) ##### 不要删除别人的代码! 目录结构 ``` 每次作业请创建单独的目录,例如 第一周 GO5001-张三/学习计划.txt 第二周 GO5001-张三/example.go ``` ##### 1.安装git ``` 第一次使用: centos: yum install git Ubuntu: apt-get install git ``` ##### 2.提交作业 1、点击fork,将代码fork到自己的仓库 ![image-20210616193628878](pics/image-20210616193628878.png) ![image-20210616193827522](pics/image-20210616193827522.png) ![image-20210616193910637](pics/image-20210616193910637.png) 2、从自己仓库clone 代码 ```shell $ git clone https://gitee.com/kevin-bruce/go5.git ``` 3、完成作业 ```shell $ cd go5/第二周/ $ mkdir GO5000-逸亭 $ cd GO5000-逸亭 $ touch homework1.go ``` 进行作业的完成 4、提交作业到自己的仓库 ```shell $ cd go5/ $ git status # 查看代码状态 $ git add . $ git commit -m "GO5000 提交作业" $ git push -u origin master ``` 5、到自己的仓库发起merge请求 ![image-20210616195637676](pics/image-20210616195637676.png) ![image-20210616195919958](pics/image-20210616195919958.png) 之后会跳转到一个页面,将页面链接如`https://gitee.com/magedu/go5/pulls/3`发到群里呼叫教练进行merge ##### 3.与远端代码进行同步 ```shell $ git remote add upstream https://gitee.com/magedu/go5.git $ git fetch upstream $ git checkout master #切换到本地master分支 $ git merge upstream/master #将代码推送到自己的远程仓库中 ```