Files
rust-based-os-comp2022/QA.md
2022-07-05 18:56:37 +08:00

3.2 KiB
Raw Blame History

常见问题解答

Q0GitHub classroom是啥如何使用

A:

 - [B站的GitHub Classroom 视频介绍](https://www.bilibili.com/video/BV12L41147r7?spm_id_from=333.337.search-card.all.click&vd_source=8e19ee6e49f598fda8c17e306d8b3726) 
 - [Youtube的GitHub Classroom视频介绍](https://www.youtube.com/playlist?list=PLIRjfNq867bewk3ZGV6Z7a16YDNRCpK3u)
 - [github文档使用 GitHub Classroom 教学](https://docs.github.com/cn/education/manage-coursework-with-github-classroom/get-started-with-github-classroom)

Q1已经在classroom中建立了自己的仓库例如 “LearningOS/lab0-0-setup-env-run-os1-chyyuu2022"但是源仓库“LearningOS/rust-based-os-comp2022“更新了如何处理

A

方法一:

  重新点击加入课程的链接在页面下方会有一行字“We've configured the repository associated with this assignment (update)”“update”是一个链接点击update就可以把自己的仓库更新到与最新状态的repository template一致。


方法二:

在自己构建的仓库根目录下执行以下命令:

git remote add upstream "https://github.com/LearningOS/rust-based-os-comp2022.git"
git fetch upstream
git checkout -b foo
git branch -D main
git checkout -t upstream/main
git reset --hard origin/main
git push -f

方法三:

向管理员“助教许善朴”申请删除已生成仓库,再点击 链接重新创建仓库。

Q2在classroom中建立了自己的仓库中进行提交 git push 后,触发 CI后出现 Annotations 错误“The job was not stared because recent account payments have failed or your spending limit needs to be increased. Please check the 'Billing & plans' section in your settings”无法完成自动CI功能比如 Autograding 等。

A:

方法一:

这是由于对用户的私有仓库进行CI 相关的github action是需要付费的。用户可通过给自己的github账户充值来解决。https://docs.github.com/cn/billing/managing-billing-for-github-actions/about-billing-for-github-actions 给出了具体信息。

方法二:

对用户的公开仓库进行CI github action是不需要付费的。在项目的 `Settings` -> `Change visibility` 将项目改成Public, 重新触发Action。 
目前设置了让用户具有修改自己的项目从private --> public的能力。
如果用户还是发现自己的权限不够,或看不到  `Settings`  这个选项,可以通过联系助教帮助来解决。

Q3我刚开始准备学习Rust是Rust新手我应该如何入门

A:

Q4我不熟悉GitHub和Git有啥快速入门的资源吗

A: