vincent-ice / 5th-loongson-class-in-neuq Goto Github PK
View Code? Open in Web Editor NEW东秦第五届龙芯班仓库
东秦第五届龙芯班仓库
发现很多同学还是不太会,这里加上图片操作
按照教程做完作业后,要尝试理解每次操作的意义,不要为了完成任务而直接复制粘贴命令
这里先说明一下,不要在网页端操作!不要在网页端操作!不要在网页端操作!目前已经发现 4、5 个小可爱用网页端提交还给merge了
本次作业的目的是为了让你熟悉Git命令行的使用方法。不会可以学,但是不要骗自己
以下教程均默认你有配置好Git环境和ssh密钥对,若没有配置好,请先配置环境,再做作业
fork
按钮https://github.com/Cai1Hsu/5th-loongson-class-in-NEUQ
这里说明一下,没有梯子的同学建议使用SSH协议,有助于避免GFW的污染
在 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
homework1
分支重点!!!很多同学提交作业的时候都没有在 homework1
分支下操作
git checkout homework1
如果提示error: pathspec 'homework2' did not match any file(s) known to git
,说明你在fork的时候默认把
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
随便搞,但要注意在./作业提交
文件夹中创建 .md
文件
按照 某某的第一次作业提交.md
的格式
这里建议学习下 markdown 语法,很简单
git commit -m "<提交信息>"
git push -u origin homework1
Pull request
页面,点击 New pull request
homework1
Create pull request
Create pull request
这样说明已经Merge了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.