Files
aurak/docs/git-setup.md

58 lines
989 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Git 配置指南
## GitTea 仓库信息
- **仓库地址**: https://gittea.dev/hangshuo652/aurak.git
- **分支**: master
- **用户名**: hangshuo652
## 获取 Access Token
1. 登录 Gitee: https://gitee.com
2. 点击头像 → 设置 → 安全设置 → 个人访问令牌
3. 生成新令牌,勾选权限:
- `project` (项目)
- `repo` (仓库)
- `pull_request` (Pull Request)
- `push` (推送)
4. 复制生成的 token
## 配置远程仓库
```bash
# 查看当前 remote
git remote -v
# 更新 remote(替换为你的 token
git remote set-url origin https://用户名:token@gitee.com/用户名/仓库名.git
```
## 常用 Git 命令
```bash
# 查看状态
git status
# 添加所有更改
git add .
# 提交更改
git commit -m "描述"
# 推送到远程
git push
# 拉取最新代码
git pull
```
## 当前环境
- 工作目录: D:/AuraK
- Node.js + NestJS 后端
- React + TypeScript 前端
- Docker Compose 部署
---
**最后更新**: 2026-05-14