本地项目上传到GitHub上(李豆)

本地项目上传到GitHub上(李豆)

  1. 准备工作:

    • 本地需要有 git

    • 也需要有一个 GitHub 账号

  2. 首先需要在 GitHub 新建一个空仓库

  3. 在想要上传项目的文件夹中使用 Git 命令操作

    • 初始化: git init
    • 与 github 仓库进行链接 :git remote add origin 你的ssh地址
    • 添加全部文件到本地仓库:git add . (有个点)
    • 提交文件到本地仓库: git commit -m '第一次提交'
    • 将仓库代码下拉到本地:git pull --rebase origin master
    • 将本地仓库代码提交到 GitHub仓库:git push origin master
相关推荐
研究点啥好呢6 小时前
Github热门项目推荐 | 创建你的像素风格!
c++·python·node.js·github·开源软件
无限进步_7 小时前
【C++】电话号码的字母组合:从有限处理到通用解法
开发语言·c++·ide·windows·git·github·visual studio
MicrosoftReactor8 小时前
技术速递|使用 Copilot SDK 构建 AI 驱动的 GitHub Issue 分类系统
人工智能·github·copilot
AI成长日志8 小时前
【GitHub开源项目专栏】AI推理优化框架深度解析(上):vLLM架构设计与核心实现
人工智能·开源·github
CV-deeplearning8 小时前
【开源】字节跳动开源 DeerFlow 2.0:一站式 SuperAgent 开发框架,GitHub 星标 5.9 万!
开源·github·deerflow·deerflow 2.0·superagent
Freak嵌入式9 小时前
MicroPython LVGL基础知识和概念:显示与多屏管理
开发语言·python·github·php·gui·lvgl·micropython
zandy101110 小时前
【全新 3.0版本】openclaw github installation guide
github·openclaw·installation
Freak嵌入式10 小时前
MicroPython LVGL基础知识和概念:时序与动态效果
开发语言·python·github·php·gui·lvgl·micropython
北冥有羽Victoria11 小时前
OpenCLI 操作网页 从0到1完整实操指南
vscode·爬虫·python·github·api·ai编程·opencli
Thomas.Sir11 小时前
GitHub Copilot从入门到精通【从基础补全到智能代理,解锁AI编程全技能】
github·copilot·ai编程