跳转至

1.3 Git基础

一、任务说明

  • 任务1: 破冰活动:自我介绍
      1. 命名格式为 camp3_<id>.md,其中 <id> 是您的报名问卷ID。
      1. 文件路径应为 ./data/Git/task/
      1. 【大家可以叫我】内容可以是 GitHub 昵称、微信昵称或其他网名。
      1. 在 GitHub 上创建一个 Pull Request,提供对应的 PR 链接。
  • 任务2: 实践项目:构建个人项目

二、任务提交

  • PR自我介绍

    • 合并请求PR链接:https://github.com/InternLM/Tutorial/pull/1044 alt text
  • 实践项目

    • 项目地址:https://github.com/acondess/menke alt text

三、任务实现步骤

Pull Request自我介绍

  • fork 仓库 https://github.com/InternLM/Tutorial
  • clone fork 仓库到开发机 git clone https://github.com/acondess/Tutorial.git alt text
  • 查看分支 git branch -a
  • 切换分支 git checkout -b camp3 origin/camp3
  • 自定义一个新的分支 git checkout -b camp3_1858 alt text
  • 创建自我介绍文件,文件路径为 ./data/Git/task/camp3_1858.md alt text
  • 提交更改到分支 git add . git commit -m "add camp3_1858.md" git push origin camp3_1858 alt text
  • 请求合并到主分支 alt text
  • 按要求填写title alt text
  • 提交成功 alt text
  • 合并请求PR链接:https://github.com/InternLM/Tutorial/pull/1044

实践项目