antigravity-github
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese連接 GitHub(AntiGravity 版)
连接GitHub(AntiGravity版)
步驟
步骤
1. 檢查
1. 检查
bash
gh auth statusbash
gh auth status2. 登入
2. 登录
bash
gh auth login --web --git-protocol httpsbash
gh auth login --web --git-protocol https3. 設定 Git 使用者
3. 设置Git用户
bash
git config --global user.name "你的名字"
git config --global user.email "your-email@example.com"bash
git config --global user.name "你的名字"
git config --global user.email "your-email@example.com"4. 安全規則
4. 安全规则
- 不把 GitHub token 寫進 Markdown、AGENTS 或 repo
- commit 前先檢查 diff,不無差別
git add .
- 不要将GitHub token写入Markdown、AGENTS或repo
- commit前先检查diff,不要无差别使用
git add .