GithubHelp home page GithubHelp logo

team3's Introduction

作业

学员提交作业流程

准备

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

fork

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

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

  1. 然后在本地,添加自己所在组的代码仓库链接,方便后面更新代码,Git命令为:
git remote add upstream [email protected]: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

team3's People

Contributors

kaichaosun avatar sekisamu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.