上传项目到GitHub

上传项目到GitHub

前期工作:创建GitHub仓库

1.使用git命令初始化文件夹

bash 复制代码
git init

2.将文件夹里面所有的文件添加到本地仓库,如果想添加单个文件,将.换成文件名就好。

bash 复制代码
git add .

3.给文件备注,双引号里面是文件备注的内容

bash 复制代码
git commit -m "first commit"

4.将本地仓库关联到github上,双引号里为自己的github仓库的链接

bash 复制代码
git remote add origin "https://github.com/fuermocai/Uploading_large_files.git"

5.将代码上传到GitHub库

bash 复制代码
git push -u origin master


相关推荐
wangruofeng39 分钟前
opencodex 解锁 Codex 任意模型,一个本地代理打通 Claude/Kimi/GLM/DeepSeek
llm·github·openai
一点一木2 小时前
从60首歌到1个网站:输入你的故事,还你一首歌
前端·github
刘较瘦_7 小时前
AI 开发中的 Git Submodule 父子仓库模式:前后端分仓管理与协作实践
前端·github
DeMinds10 小时前
内容没有丢,我为什么总在重新整理?|DeMinds 如何让工作接着继续
ios·github·markdown
寒水馨10 小时前
macOS下载、安装openclaw-v2026.7.1(附安装包OpenClaw-2026.7.1.dmg)
macos·大模型·github·开源软件·ai助手·openclaw·gpt-5.6
徐小夕11 小时前
花了3天,我写了一款开源AI公众号编辑器
前端·vue.js·github
CCPC不拿奖不改名1 天前
大模型推理架构与开源生态知识整理
数据库·windows·python·架构·langchain·开源·github
redreamSo1 天前
一天涨 1800 星的 GitHub 榜首:AI 编程瓶颈变成了 token
人工智能·开源·github
小弥儿1 天前
GitHub今日热榜 | 2026-07-20:AI Agent 知识体系迎来系统化梳理
学习·开源·github