Files
aurak/docs/git-setup.md

989 B
Raw Permalink Blame History

Git 配置指南

GitTea 仓库信息

获取 Access Token

  1. 登录 Gitee: https://gitee.com
  2. 点击头像 → 设置 → 安全设置 → 个人访问令牌
  3. 生成新令牌,勾选权限:
    • project (项目)
    • repo (仓库)
    • pull_request (Pull Request)
    • push (推送)
  4. 复制生成的 token

配置远程仓库

# 查看当前 remote
git remote -v

# 更新 remote(替换为你的 token
git remote set-url origin https://用户名:token@gitee.com/用户名/仓库名.git

常用 Git 命令

# 查看状态
git status

# 添加所有更改
git add .

# 提交更改
git commit -m "描述"

# 推送到远程
git push

# 拉取最新代码
git pull

当前环境

  • 工作目录: D:/AuraK
  • Node.js + NestJS 后端
  • React + TypeScript 前端
  • Docker Compose 部署

最后更新: 2026-05-14