GitHub 上传工程

1. 配置 Git 身份

打开 VS Code 终端

复制代码
git config --global user.name "Aualiu"
git config --global user.email "3195646143@qq.com"

二、本地初始化 Git(3 行命令)

复制代码
# 1. 初始化仓库
git init

# 2. 添加所有文件
git add .

# 3. 提交代码
git commit -m "首次提交:STM32工程完整代码"

三、绑定 GitHub 远程仓库

复制代码
# 绑定你的远程仓库(直接复制这条)
git remote add origin https://github.com/Aualiu/voltage-test-system.git

四、解决版本冲突

复制代码
# 拉取远程代码并合并(必须执行)
git pull origin main --allow-unrelated-histories

五、最终推送代码到 GitHub(成功!)

复制代码
git push -u origin main
相关推荐
wangruofeng4 小时前
8 小时 10000 星,xAI 把内部编码 Agent 开源了:Grok Build 的架构拆解
开源·github·aigc
胡萝卜术4 小时前
RAG 的知识炼油厂:从原始网页到可检索知识块的工程化之路
面试·架构·github
GoGeekBaird5 小时前
我用 BeeWeave 跑完了一次完整写作闭环
后端·github
wangruofeng5 小时前
2026 年 7 月 GitHub 趋势观察:Skills 生态爆发,744B MoE 跑进消费级机器
github·aigc·ai编程
风向决定发型d7829 小时前
Github Copilot 新手极速上手指南
人工智能·github·copilot
有想法的py工程师10 小时前
GPG 密钥迁移指南:多私钥备份、批量导入与自动信任
git·github
OpenTiny社区11 小时前
WebSkill - Agentic Web 面向 SaaS (Skill as a Service) 的进化
github·agent
举个栗子。13 小时前
Skill Store github 压缩包
ai·github·skills
半夜修仙13 小时前
RabbitMQ的推模式和拉模式
java·分布式·中间件·rabbitmq·github·java-rabbitmq
秋天的一阵风14 小时前
✨ 原来文本转换可以这么丝滑!UnifiedJS 实战指南来了
前端·github·markdown