Files

1.8 KiB
Raw Permalink Blame History

GITHUB 推送检查单(T-079)

状态:✅ 已完成(2026-08-14)

一、推送结果

项目 值
远程仓库 https://github.com/abcv7/perler-lab
可见性 PRIVATE(私有)
默认分支 master
Remote 名称 origin
推送结果 ✅ 已推送(gh repo create perler-lab --private --source . --push)

二、当前 git 状态

  • git remote -v → 已配置 origin https://github.com/abcv7/perler-lab.git
  • git log --oneline -3 → 基线提交已推送(97b917c chore: 项目基线提交)
  • 工作区还有 T-078 未入库文件,由 T-078 负责 commit 后执行 git push 即可同步。

三、日常推送流程

# 提交改动
git add .
git commit -m "feat: 描述本次改动"

# 推送到 GitHub 私库
git push origin master

四、手动推送备选步骤(无需 GitHub CLI 时)

若在无 gh 的环境中手动推送,按以下步骤:

  1. 在 github.com 网页创建私有仓库:

    • 打开 https://github.com/new
    • Repository name 填 perler-lab
    • 选择 Private(私有) —— 不要选 Public
    • 不要勾选 "Add a README"(避免初始化冲突)
    • 点击 Create repository
  2. 在本地配置 remote(把 <用户名> 换成实际 GitHub 用户名):

git remote add origin https://github.com/<用户名>/perler-lab.git
  1. 推送 master 分支:
git push -u origin master

五、安全检查

  • ✅ 已扫描提交内容,无 sk-、api_key 等硬编码密钥
  • ✅ 仅 .env.example(占位符)入库,真实 .env 未提交且已在 .gitignore 中
  • ⚠️ 不要将真实 API Key / 微信商户私钥提交入库

六、MUST NOT(红线)

  • ❌ 不要 force push(git push -f)
  • ❌ 不要把仓库改为 public
  • ❌ 不要把密钥提交到任何文件