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
相关推荐
码流怪侠2 小时前
【GitHub】Bend:让 GPU 并行编程像写 Python 一样简单
python·github
炸膛坦客2 小时前
Git 和 GitHub:(九)修改本地仓库内容并推送到远程仓库(关联/克隆)
git·github
lazy H5 小时前
Git clone 怎么用?克隆项目及常见问题完整教程
大数据·git·后端·学习·搜索引擎·github
2501_915921437 小时前
iOS开发环境搭建详解 Xcode 配置与快蝎轻量级工具选择
ide·vscode·macos·ios·个人开发·xcode·敏捷流程
m0_743697598 小时前
关于ftp与SELinux的冲突问题
git·github
凌奕9 小时前
我读了六个 Coding Agent 的上下文压缩源码,发现网上流传的数据一半是错的
github·agent·claude
wardenlzr10 小时前
VSCode 运行 Live Server 提示「Windows 找不到文件 Chrome」问题全解析
chrome·windows·vscode
程序员more10 小时前
我用 AI,20 分钟做了一个 VSCode 股票摸鱼插件
人工智能·vscode
减瓦12 小时前
告别Postman——用VSCode优雅地发起Http请求
vscode·http·postman
一次旅行13 小时前
act本地预跑GitHub Actions:Python项目完整CI/CD流水线实战
python·ci/cd·github