本地项目上传到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
相关推荐
冴羽yayujs6 分钟前
GitHub 热门项目-日榜(2026-05-13)
github
0vvv01 小时前
github拆分小批量上传文件
github
乐动心情1 小时前
RocksDB的代码分析报告
github
知识领航员12 小时前
蘑兔AI音乐深度实测:功能拆解、实测表现与适用场景
java·c语言·c++·人工智能·python·算法·github
morestrive15 小时前
基于 fabric.js 实现浏览器端矢量 PDF 导出
前端·github
右耳朵猫AI19 小时前
GitHub Trending 本周 Top 10
github
AlexMaybeBot19 小时前
巧用 OpenClaw 为 Android 开发电脑瘦身
android·github·ai编程
阿福聊编程1 天前
GitHub Trending · 分类汇总(2026-05-11
github
逛逛GitHub1 天前
盘点 10 个刚刚开源,但 Star 攀升很快的 GitHub 项目。
github
习惯就好zz1 天前
在 Qt Creator 19.0.0 中配置 GitHub Copilot 的完整记录
qt·github·copilot