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
相关推荐
wflynn8 小时前
GitHub 日榜趋势速报 | 2026-10-10
开源·github
fthux9 小时前
开源小工具 Who Arrives:看看你的公网 IP、地区、时区和网络
http·开源·github
来自于狂人9 小时前
GitHub 开源趋势日报 | 2026年10月10日,告别 Mermaid 的图表设计系统
开源·github
u1301309 小时前
GitHub 热榜项目:日榜(2026-10-10)
人工智能·github
Python测试之道11 小时前
GitHub 实战课|Playwright MCP:让 AI 真的会用浏览器
人工智能·github
小陈运维11 小时前
GitHub Actions + Docker + ACR + GHCR 自动化构建与发布
github
miofly12 小时前
AI 智能体用 83% 字节精确匹配反编译完整游戏
开源·github
TunerT_TQ15 小时前
开源评测】openai/math 深度拆解:722 份 AI 数学手稿与 Lean 形式化的工程真相
github
W.A委员会15 小时前
PID自动整定与LLM调优项目使用说明(源码附文末)
自动化·github