内容
# 将本地项目首次推送到 GitHub 仓库的 GIT 指令
```bash
cd path/to/fastmcp_neo_server
```
### 初始化 git(如果尚未完成)
```bash
git init
```
### 添加所有文件(遵循 .gitignore)
```bash
git add .
```
### 首次提交
```bash
git commit -m "Initial commit"
```
### 链接到 GitHub(将 YOUR_USERNAME 替换为你的 GitHub 用户名)
```bash
git remote add origin https://github.com/YOUR_USERNAME/fastmcp_neo_server.git
```
### 设置分支为 main 并推送
```bash
git branch -M main
git push -u origin main
```
如果你遇到这个错误 --> ! [rejected] main -> main (fetch first)
------------------------------------------------------------------------
```bash
git pull origin main --rebase
git push origin main
```
如果有合并冲突 - 请执行以下操作
-------------------------------------
```bash
git add .
git rebase --continue
git push origin main
```