Giter Site home page Giter Site logo

5th-loongson-class-in-neuq's Introduction

NEUQ的第五届龙芯班仓库

本仓库为东北大学秦皇岛分校第五届龙芯实验班仓库,将会作为资料共享及作业提交仓库使用

5th-loongson-class-in-neuq's People

Contributors

ggggbox avatar tom202019105 avatar vincent-ice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

5th-loongson-class-in-neuq's Issues

第一周作业手把手教程(图文版)

发现很多同学还是不太会,这里加上图片操作

按照教程做完作业后,要尝试理解每次操作的意义,不要为了完成任务而直接复制粘贴命令

这里先说明一下,不要在网页端操作!不要在网页端操作!不要在网页端操作!目前已经发现 4、5 个小可爱用网页端提交还给merge了
本次作业的目的是为了让你熟悉Git命令行的使用方法。不会可以学,但是不要骗自己

以下教程均默认你有配置好Git环境和ssh密钥对,若没有配置好,请先配置环境,再做作业

1. 在仓库主页点击右上角的fork按钮

2. 取消勾选

  • Copy the main branch only
    然后点击 Create fork
    image

3. 克隆你的仓库

  1. 打开你的仓库主页
3d3d5fa1fe4ecc060df5f788f0ba786a
  1. 复制克隆仓库地址
95f03fdb65d6215ba4609ac79c3b81b6
  • 以我的为例,我的仓库为https://github.com/Cai1Hsu/5th-loongson-class-in-NEUQ

这里说明一下,没有梯子的同学建议使用SSH协议,有助于避免GFW的污染

  1. 在你想要放仓库文件的地方按住shift,点右键,选择Git Bash Here(大概长这样)
60e2c81becbcfb59a0de7b30fe6c9791

在 Git Bash(或终端,对于Linux用户)中输入以下命令
输入时,先输入git clone ,然后Ctrl+Shift+V(注意在终端中粘贴要加Shift,复制的时候也要加)即可粘贴链接

# 不要直接复制这条命令,把链接换成你刚才复制的
# git clone https://github.com/<你的用户名>/5th-loongson-class-in-NEUQ
git clone https://github.com/Cai1Hsu/5th-loongson-class-in-NEUQ

或使用ssh

# 不要直接复制这条命令,把链接换成你刚才复制的
# git clone [email protected]:<你的用户名>/5th-loongson-class-in-NEUQ
git clone [email protected]:Cai1Hsu/5th-loongson-class-in-NEUQ

4. 切换到 homework1 分支

重点!!!很多同学提交作业的时候都没有在 homework1 分支下操作

git checkout homework1

如果提示error: pathspec 'homework2' did not match any file(s) known to git,说明你在fork的时候默认把

  • Copy the main branch only 勾选了

不要担心,还有补救方法,向仓库添加上游源,然后拉取 homework1 分支即可

# 添加上游源,HTTPS和SSH如何选择见 `3. 克隆你的仓库`
# 但是要注意上游源不是你自己的仓库,而是 `Vincent-ice/5th-loongson-class-in-NEUQ` !!
git remote add upstream https://github.com/Vincent-ice/5th-loongson-class-in-NEUQ.git
git fetch upstream

# 创建并切换到 `homework1`
git branch homework1
git checkout homework1

# 合并上游的 `homework1`
git merge upstream/homework1

5. 创建你的作业文件

随便搞,但要注意在./作业提交 文件夹中创建 .md 文件
按照 某某的第一次作业提交.md 的格式
这里建议学习下 markdown 语法,很简单

6. 提交并push

git commit -m "<提交信息>"
git push -u origin homework1

创建Pull request

  1. 打开你的仓库主页,切换到 Pull request 页面,点击 New pull request
  2. 将源仓库和目标仓库的分支都切换为homework1
  3. 点击 Create pull request
    image
  4. 输入一些简要的description, 再点击 Create pull request
    image
  5. 等待合并
    不是提交后就作业完成了!!!要关注你的PR是否有被Merge!!!如果你的提交有问题会有人在底下评论,要按照要求修改
    作业是否完成是以是否被Merge为标准
    image

这样说明已经Merge了

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.