章节大纲

      1. 申请github账号、教育认证github copilot、安装vscode、给vscode安装cline插件、给cline等agent装skill
      2. npx skills add rohitg00/ai-engineering-from-scratch
      3.  
      4. git clone https://github.com/rohitg00/ai-engineering-from-scratch.git
      5. cd ai-engineering-from-scratch
      6. 先到 GitHub 网页新建一个空的私有仓库 ai-engineering-learning —— 关键:不要勾选 "Add a README"、.gitignore、license,否则首次 push 会冲突:

        • 打开 https://github.com ,点右上角头像旁边的 + 号(一排图标的最右边那个加号)。
        • 在弹出菜单里点 New repository(新建仓库)。
        • 进入 "Create a new repository" 页面,依次填:
          • Repository name:填 ai-engineering-learning
          • Description(可选):随便写,比如 AI Engineering from Scratch 学习记录
          • Public / Private:选 Private(⚠️ 一定要选私有,别用 Public)
        • 往下滚动到 "Initialize this repository with:" 这一栏 ——
          • 不勾 Add a README file
          • 不勾 Add .gitignore
          • 不勾 Choose a license
          这三项保持全空,仓库才是 "空的",后续 push 才不会冲突。
        • 点页面最底部的绿色按钮 Create repository
        •  
      7. 随后将课程仓库作为你自己的学习仓库推送:
        git remote rename origin upstream # 原课程仓库改名为 upstream
        git remote add origin git@github.com:YOUR_GITHUB_ID/ai-engineering-learning.git
        git push -u origin main # 把你的学习基线推到自己仓库

        然后检查:

        bash
         
         
        git remote -v

        应看到类似:

        origin git@github.com:你的用户名/ai-engineering-learning.git (fetch) origin git@github.com:你的用户名/ai-engineering-learning.git (push) upstream https://github.com/rohitg00/ai-engineering-from-scratch.git (fetch)
        upstream https://github.com/rohitg00/ai-engineering-from-scratch.git (push)
      8. 在课程仓库根目录执行:npx skills add rohitg00/ai-engineering-from-scratch
      9. 指定具体哪节课后,再按课程说明,在 Cline 中调用:start-learning
      10. 确认一下双远端:git remote -v 应看到 origin(你的私有库,读写)和 upstream(课程库,只读)。

        1. 用 VS Code 打开课程仓库目录,Control + `打开vs code termial

        2. 如果之前建立个人目录就跳过此步,没有就
          mkdir -p _mywork

          建议创建一个极短的进度文件:

          bash
           
          touch _mywork/PROGRESS.md

          内容只需要类似:

          text
           
          # Progress - Current lesson: Phase 04 / Lesson 13 / 3D Vision — Point Clouds & NeRFs - Current step: The Problem - Next: Read The Concept, then run the lesson code.

          它不是“额外笔记系统”,只是让另一台 Mac 打开仓库后知道你学到哪里。

        3. 你目前提示符显示:

          (base) lee@macmini ...

          这说明你正处在 Conda 的 base 环境。现在在仓库根目录执行:

          bash
           
          conda create -n aie-scratch python=3.11 pip -y

          含义:

          aie-scratch = 这门 AI Engineering from Scratch 课程专用环境名 python=3.11 = 独立 Python 3.11 pip = 在这个独立环境中安装 requirements.txt 所需的 pip -y = 自动确认

          完成后激活:

          bash
           
          conda activate aie-scratch

          此时提示符必须从:

          (base) lee@macmini ai-engineering-from-scratch %

          变为:

          (aie-scratch) lee@macmini ai-engineering-from-scratch %

          这是最重要的检查点。只有看到 (aie-scratch) 后,才允许运行 pip 安装。

          pip install -r requirements.txt
        4.  

        二、日常:

      11. 你的最小目录结构

        保持最少目录:

        ai-engineering-from-scratch/
        ├── phases/                          # 课程原始内容:不改
        └── _mywork/                         # 你的内容:只在此处写
            ├── PROGRESS.md
            └── p04-l13-3d-vision-nerf/
                ├── easy.py
                ├── medium.py
                ├── hard.py
                └── <课程 Ship It 明确要求的文件>
      12. 提交你的学习进度

        git add _mywork
        git commit -m "写这次commit都完成了啥"
        git push origin main
        

        三、定期:拉取课程更新(卡住或想追新课版时)

        git fetch upstream
        git merge upstream/main
        # 只有当你改动过课程原文件时才会冲突;解决后:git add . && git commit
        git push origin main