# 如何在 GitHub 创建仓库 - 详细图文教程
## 📍 第一步:打开创建页面
### 方式一:直接访问链接(最快)
在浏览器中打开:
```
https://github.com/new
```
### 方式二:从 GitHub 首页
1. 访问 https://github.com
2. 点击右上角的 **+** 号
3. 选择 **New repository**
---
## 📝 第二步:填写仓库信息
你会看到一个表单,按以下方式填写:
### ① Repository name(仓库名称)
```
supercoordination-mcp
```
⚠️ **注意**:必须完全一样,因为我已经配置好了这个名称!
### ② Description(描述,可选)
```
超协体人机协同MCP服务器 - 五行能量平衡的智能任务分配系统
```
### ③ 可见性(Visibility)
选择 **Public**(公开)
- ✅ Public:免费,任何人可见,Railway 免费部署
- ❌ Private:私有,需要 Railway 付费计划
### ④ Initialize this repository(初始化选项)
**⚠️ 重要:全部不要勾选!**
- ❌ **不要勾选** Add a README file
- ❌ **不要勾选** Add .gitignore
- ❌ **不要勾选** Choose a license
**为什么不勾选?**
因为我们已经在本地准备好了所有文件,勾选会导致冲突。
---
## ✅ 第三步:创建仓库
点击页面底部的绿色按钮:
```
[Create repository]
```
---
## 🎉 第四步:看到成功页面
创建成功后,你会看到一个页面,标题是:
```
Quick setup — if you've done this kind of thing before
```
**这个页面有很多命令,但你不需要看它们!**
我已经帮你准备好了正确的命令。
---
## 🔑 第五步:创建个人访问令牌(如果还没有)
### 为什么需要令牌?
GitHub 不再支持密码推送,必须使用"个人访问令牌"(Personal Access Token)。
### 创建步骤:
#### 5.1 打开令牌创建页面
在浏览器**新标签页**打开:
```
https://github.com/settings/tokens/new
```
#### 5.2 填写令牌信息
**Note(备注)**:
```
supercoordination-mcp
```
**Expiration(过期时间)**:
- 选择 `90 days`(90天)
- 或其他你喜欢的时间
**Select scopes(选择权限)**:
滚动到下面,找到并勾选:
- ✅ **repo**(勾选这一项就够了)
- 会自动勾选下面的所有子项
- 包括 repo:status, repo_deployment 等
#### 5.3 生成令牌
滚动到页面底部,点击绿色按钮:
```
[Generate token]
```
#### 5.4 复制令牌
⚠️ **非常重要!**
页面会显示一个绿色的令牌,类似:
```
ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
**立即复制这个令牌!**
- 它只显示一次
- 关闭页面后就看不到了
- 如果丢失,只能重新生成
可以:
- 复制到记事本暂存
- 或直接用于下一步推送
---
## 🚀 第六步:推送代码到 GitHub
### 打开终端(Terminal)
在你的电脑上打开终端:
- macOS:按 `Command + 空格`,输入 `terminal`,回车
- 或者在 应用程序 → 实用工具 → 终端
### 执行推送命令
在终端中输入:
```bash
cd ~/ClaudeWorkspace/supercoordination-mcp
git push -u origin main
```
### 输入认证信息
终端会提示:
```
Username for 'https://github.com':
```
输入:
```
VIONWILLIAMS
```
按回车
然后提示:
```
Password for 'https://VIONWILLIAMS@github.com':
```
**粘贴刚才复制的令牌**(不是 GitHub 密码!)
- macOS:`Command + V`
- 注意:粘贴时不会显示任何字符(这是正常的)
- 粘贴后直接按回车
### 等待推送完成
你会看到类似这样的输出:
```
Enumerating objects: 57, done.
Counting objects: 100% (57/57), done.
Delta compression using up to 8 threads
Compressing objects: 100% (45/45), done.
Writing objects: 100% (57/57), 123.45 KiB | 12.34 MiB/s, done.
Total 57 (delta 10), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (10/10), done.
To https://github.com/VIONWILLIAMS/supercoordination-mcp.git
* [new branch] main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.
```
看到这个就说明**推送成功**!✅
---
## 🎯 第七步:验证上传成功
在浏览器访问:
```
https://github.com/VIONWILLIAMS/supercoordination-mcp
```
你应该能看到:
- ✅ 45 个文件已上传
- ✅ README.md 显示在页面上
- ✅ 项目描述正确
---
## ❓ 常见问题
### Q1: 找不到"Create repository"按钮?
**答**:确保你已登录 GitHub。右上角应该显示你的头像。
### Q2: 提示"Repository name already exists"?
**答**:你之前可能创建过同名仓库。
- 删除旧仓库:https://github.com/VIONWILLIAMS/supercoordination-mcp/settings
- 或者改个新名字(但需要告诉我)
### Q3: 推送时提示"remote: Repository not found"?
**答**:
1. 确认仓库名称拼写正确:`supercoordination-mcp`
2. 确认仓库是 Public(不是 Private)
3. 确认你的用户名是 `VIONWILLIAMS`
### Q4: 推送时提示"Authentication failed"?
**答**:
- 确认用户名是 `VIONWILLIAMS`(区分大小写)
- 确认粘贴的是**令牌**,不是 GitHub 密码
- 令牌应该以 `ghp_` 开头
### Q5: 令牌复制后找不到了?
**答**:重新生成一个:
1. https://github.com/settings/tokens
2. 点击 "Generate new token" → "Generate new token (classic)"
3. 重复第五步
### Q6: 输入密码时看不到字符?
**答**:这是正常的!Unix 终端输入密码时不会显示,直接粘贴后按回车即可。
---
## ✅ 推送成功后的下一步
### 立即部署到 Railway
1. **访问 Railway**:
```
https://railway.app
```
2. **登录**:
- 点击 "Login with GitHub"
- 授权 Railway 访问
3. **新建项目**:
- 点击 "New Project"
- 选择 "Deploy from GitHub repo"
- 找到 `supercoordination-mcp`
- 点击部署
4. **等待部署**(2-3分钟)
5. **生成域名**:
- 项目 → Settings → Domains
- Generate Domain
- 复制域名
6. **访问你的超协体仪表盘**:
```
https://<你的域名>.up.railway.app
```
7. **分享给团队** 🎉
---
## 📞 需要帮助?
如果遇到任何问题:
1. 截图错误信息
2. 告诉我你在哪一步卡住了
3. 我会帮你解决!
---
**现在开始创建仓库吧!** 🚀