VScode配置 github 上传代码

  1. 初始化本地库
bash 复制代码
git init
  1. 创建本地分支,需要和github分支名字一样
bash 复制代码
git checkout -b master
  1. 本地仓库连接远程仓库
bash 复制代码
git remote add origin 自己的仓库地址
  1. 云仓库代码同步到本地
bash 复制代码
git pull origin master
  1. 上传代码
bash 复制代码
git push -u origin master
相关推荐
wangruofeng1 小时前
opencodex 解锁 Codex 任意模型,一个本地代理打通 Claude/Kimi/GLM/DeepSeek
llm·github·openai
一点一木3 小时前
从60首歌到1个网站:输入你的故事,还你一首歌
前端·github
AI的探索之旅7 小时前
AI辅助原理图评审:电源去耦、BOOT引脚、VCAP——19项逐一核查,遗漏?不存在的
人工智能·vscode·嵌入式硬件
刘较瘦_7 小时前
AI 开发中的 Git Submodule 父子仓库模式:前后端分仓管理与协作实践
前端·github
qq_452396239 小时前
第二篇:《Go 开发环境搭建:SDK、IDE、Module 与 Hello World》
开发语言·ide·golang
DeMinds10 小时前
内容没有丢,我为什么总在重新整理?|DeMinds 如何让工作接着继续
ios·github·markdown
可视化运维管理爱好者10 小时前
nVisual Studio:数据中心网络智能规划设计工具
网络·ide·visual studio
寒水馨10 小时前
macOS下载、安装openclaw-v2026.7.1(附安装包OpenClaw-2026.7.1.dmg)
macos·大模型·github·开源软件·ai助手·openclaw·gpt-5.6
徐小夕11 小时前
花了3天,我写了一款开源AI公众号编辑器
前端·vue.js·github