Skip to content
/ team4 Public
forked from starit/team4

The homework submitted by students in team 4

Notifications You must be signed in to change notification settings

gbt1988/team4

This branch is 5 commits ahead of starit/team4:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1afe292 · Jun 1, 2020

History

10 Commits
May 29, 2020
Jun 1, 2020
May 28, 2020
May 30, 2020
May 30, 2020
May 28, 2020
May 29, 2020
May 29, 2020
May 29, 2020

Repository files navigation

作业

学员提交作业流程

准备

  1. 首先Fork自己所在组的代码仓库(本仓库)到自己的Github用户里,

fork

  1. 接着在本地,克隆刚刚Fork过来的代码仓库,Git命令为:
git clone git@github.com:<your-github-account>/<your-team>.git

替换your-github-account为自己Github账户名,<your-team>为自己所在组。

  1. 然后在本地,添加自己所在组的代码仓库链接,方便后面更新代码,Git命令为:
git remote add upstream git@github.com:SubstrateCourse/<your-team>.git

替换<your-team>为自己所在组。通过git remote -v,你应该能看到新添加的远端仓库链接。

写作业流程

注意:每次写作业都需要按照下面的流程进行。

  1. 首先在本地,切换到以自己名字命名的分支, Git命令为:
git checkout <your-name>

替换your-name为自己的名字或Github账户名字,如果没有,联系助教进行添加。如何查找:

branch

  1. 之后在本地,更新远端的代码到本地,Git命令为:
git pull upstream <your-name>

替换your-name为自己的名字或Github账户名字,注意这里不能是master分支。

  1. 接着在本地,创建一个新的分支,Git命令为:
git checkout -b <lesson-n>

替换lesson-n为第几节课,比如第一节课的作业是lesson-1

  1. 进入到对应的作业目录里,开始写作业...

  2. 作业在本地完成后,commit 需要提交的作业内容,Git命令为:

// 添加你需要提交的作业
git add -p

// 添加某个文件
git add <file-name>

// commit 修改到本地
git commit -m "homework for lesson n"

注意,你也可以包含多个commit记录,防止写作业的时候代码丢失,评分只会按照最终的代码结果。

  1. push到自己的Github仓库里,Git命令为:
git push origin <lesson-n>

这里的lesson-n和上面的一致。

  1. 发送作业PR,

create_pr

send_pr

  1. 通知助教批改作业。

讲师、助教职责

本仓库的master分支由讲师提交;

本仓库由学员名字命名的分支,由学员通过发送PR提交,助教review之后merge到相应的分支。

每节课之前,master分支会提交该课的作业基础代码,由助教将新增的代码同步到学员分支。

Flow:

flow

About

The homework submitted by students in team 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.8%
  • Shell 1.2%