yuebin's blog

直接克隆原始仓库然后修改远程地址

1. 完整克隆原始仓库(包含所有分支和历史)

bash

git clone https://github.com/cedar2025/Xboard
cd Xboard

2. 查看所有分支

bash

git branch -a # 查看所有分支(本地和远程)

3. 修改远程地址指向你的 fork

bash

git remote set-url origin https://github.com/你的用户名/Xboard

4. 推送所有分支到你的 fork

bash

git push origin --all
git push origin --tags