版本:下一个
GitHub 工作流
本指南涵盖为 HAMi 贡献代码的完整 Git 和 GitHub 工作流程,适用于 HAMi 核心仓库和文档网站。

Fork 和克隆
在 GitHub 上 fork 目标仓库,然后把你的 fork 克隆到本地:
export user="your-github-username"
# HAMi 核心代码
git clone https://github.com/$user/HAMi.git
cd HAMi
git remote add upstream https://github.com/Project-HAMi/HAMi.git
git remote set-url --push upstream no_push
# 文档网站
git clone https://github.com/$user/website.git
cd website
git remote add upstream https://github.com/Project-HAMi/website.git
git remote set-url --push upstream no_push
检查你的远程仓库设置:
git remote -v