当前项目远程仓库:
https://github.com/YIMO691/Unity-AI-LearningDemo
本地 origin 已设置为上面的仓库地址。不要在未检查 .gitignore 和密钥前执行 git push。
cd F:\Unity6_AI
git remote -v期望看到:
origin https://github.com/YIMO691/Unity-AI-LearningDemo (fetch)
origin https://github.com/YIMO691/Unity-AI-LearningDemo (push)
git remote set-url origin https://github.com/YIMO691/Unity-AI-LearningDemo当前本机如果没有安装 GitHub CLI gh,可以按下面安装:
- 安装 GitHub CLI:
winget install --id GitHub.cli- 关闭并重新打开终端,登录 GitHub:
gh auth login- 登录 GitHub:
gh auth logingit checkout -b milestone/m1-fsm
# 完成一个可验证小任务
git status
git add .
git commit -m "Implement M1 FSM prototype"
git push -u origin milestone/m1-fsm然后在 GitHub 上打开 Pull Request。PR 模板已经放在 .github/pull_request_template.md。
- GitHub CLI Windows 安装说明:https://raw.githubusercontent.com/cli/cli/trunk/docs/install_windows.md