gitsetup
Skill36 starsChanged 8 months agoMITView on GitHub
当用户想初始化 Git、配置 .gitignore、创建 GitHub 仓库、首次推送代码时使用 — 从零配置 Git 到推送 GitHub
- Reads credentials
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- apiSkill
- authSkill
- blogSkill
- changelogSkill
- code-reviewSkill
- commitSkill
- compareSkill
- componentSkill
- conceptSkill
- copySkill
- dashboard-adminSkill
- databaseSkill
- debugSkill
- deploySkill
- docSkill
- emailSkill
- envSkill
- explainSkill
- fixSkill
- formSkill
- install-pluginsSkill
- landingSkill
- learnSkill
- migrateSkill
- paymentSkill
- perfSkill
- readme-genSkill
- refactorSkill
- responsiveSkill
- scriptSkill
- seoSkill
- setupSkill
- starterSkill
- storageSkill
- testSkill
The file
Files
配置 Git 仓库
帮用户从零配置 Git,一直到推送到 GitHub。
步骤
1. 检查当前状态
检查项目是否已经初始化 Git:
- 已初始化 → 跳到第 3 步
- 未初始化 → 从第 2 步开始
2. 初始化 Git
- 运行
git init - 创建初始分支
main
3. 生成 .gitignore
根据检测到的技术栈生成 .gitignore:
- 通用 — .DS_Store、.env、node_modules、pycache、*.log
- 前端 — dist、build、.next、.nuxt
- Python — venv、.venv、*.pyc、.pytest_cache
- IDE — .vscode、.idea
如果已有 .gitignore,检查是否有遗漏并补充。
4. 创建 GitHub 仓库(可选)
要创建 GitHub 仓库并推送吗?
如果用户同意:
- 用
gh repo create创建私有仓库 - 设置 remote
- 初始提交并推送
注意:默认创建私有仓库。如果用户想要公开,需要明确确认。
5. 完成
Git 配置完成。 (展示仓库地址,如果创建了 GitHub 仓库) 用 /commit 提交代码,用 /deploy 部署上线。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

