上传项目到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


相关推荐
m0_6948455714 小时前
Oh My Zsh 使用指南:Zsh 终端配置与插件管理教程
服务器·前端·小程序·开源·github
米小虾15 小时前
hackerbot-claw 攻击事件深度解析:AI Agent 时代的安全警钟
github·ai编程
逛逛GitHub16 小时前
AI 搜索利器 MiroThinker 发布新模型!我接入小龙虾,太实用了。
github
happyprince17 小时前
2026年03月18日热门Model/github项目
github
无限进步_18 小时前
深入解析list:一个完整的C++双向链表实现
开发语言·c++·git·链表·github·list·visual studio
AI成长日志18 小时前
【datawhale】hello agents开源课程第1章学习记录:初识智能体
学习·开源·github
爆打维c18 小时前
Github配置SSH Key(新手友好版)
ssh·github
老虎062720 小时前
Netty[ NIO 核心速成 ] ---- NIO三大组件(Channel & Buffer&selector)
java·github·nio
屑曦晨21 小时前
创建签名密钥库和配置CICD签名
github
成都极云科技21 小时前
2026年服务器托管收费标准解析 性价比对比及边缘节点选型全指南
运维·服务器·github