- 新增 01-nvm-node.md: nvm 安装、Node.js LTS 管理、全局包安装 - 原 01-09 顺延为 02-10 - 更新 SKILL.md checklist 表格 - 更新各子文档标题编号和前置引用 - self-check.sh: 加入 nvm/node 检查项,补充邮箱检查 [小糯]
36 lines
689 B
Markdown
36 lines
689 B
Markdown
# 05. Git 身份配置
|
|
|
|
## 前置
|
|
|
|
- 已完成 04 (shazhou.work 邮箱) — 需要邮箱地址配 user.email
|
|
|
|
## 检查
|
|
|
|
```bash
|
|
git config --global user.name
|
|
git config --global user.email
|
|
```
|
|
|
|
✅ 达标:name 是你的中文名(如 星月、小墨),email 是 `name@shazhou.work`
|
|
|
|
## 安装
|
|
|
|
```bash
|
|
# 替换为你的信息
|
|
git config --global user.name "星月"
|
|
git config --global user.email "xingyue@shazhou.work"
|
|
|
|
# 推荐设置
|
|
git config --global init.defaultBranch main
|
|
git config --global pull.rebase true
|
|
git config --global push.autoSetupRemote true
|
|
```
|
|
|
|
## 验证
|
|
|
|
```bash
|
|
git config --global --list | grep user
|
|
# user.name=星月
|
|
# user.email=xingyue@shazhou.work
|
|
```
|