一、首次从 GitHub 克隆(别人或你自己另一台机器)
git clone https://github.com/Trisyp/cnipa-patent-writer.git
cd cnipa-patent-writer
Windows PowerShell 克隆到技能目录示例:
git clone https://github.com/Trisyp/cnipa-patent-writer.git $env:USERPROFILE\.cursor\skills\cnipa-patent-writer
二、本地已有代码,首次关联 GitHub(我们第一次做的)
cd C:\Users\admin\.cursor\skills-cursor\cnipa-patent-writer
# 初始化仓库
git init
# 查看状态
git status
# 添加全部文件
git add -A
# 首次提交(作者信息可只对本仓库生效,不写 global)
git -c user.name="Trisyp" -c user.email="email@qq.com" commit -m "Initial release: CNIPA patent writer skill with Word math support."
# 主分支改名为 main(GitHub 默认)
git branch -M main
# 关联远程仓库
git remote add origin http
订阅专栏 解锁全文

698

被折叠的 条评论
为什么被折叠?



