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


相关推荐
2601_961845154 小时前
粉笔行测5000题电子版|pdf|解析
pdf·新媒体运营·github·个人开发·内容运营·规格说明书·极限编程
用户773530084516 小时前
gorillamux:Go语言路由库的实用选择
github
BBWEYY终身尊贵会员7 小时前
2026年6月四款建站工具怎么选?BBWEYY、比文云、GitHub Copilot、Dreamweaver 简明对比
github·copilot·dreamweaver
DogDaoDao7 小时前
【GitHub】CL4R1T4S:AI 系统提示词的透明革命
人工智能·python·ai·大模型·github·ai agent·cl4r1t4s
MicrosoftReactor8 小时前
技术速递|从一次性提示到标准化工作流:如何在 GitHub Copilot CLI 中使用自定义智能体
github·copilot·cli·智能体
Png8 小时前
我被腾讯 ACE 反作弊逼疯了,最后靠一个 PowerShell 脚本治好了精神内耗
github
OpenIM8 小时前
增量版本同步能力介绍 | OpenIM
开源·github·信息与通信
lpfasd12321 小时前
2026年第24周科技社区趋势周报
github
今夕资源网1 天前
github开源 网页在线音频转文本工具 node.js+html源码
github·音频转文本·音频转字幕·音频转srt·音频转srt字幕文件·音频转lrc·音频转txt
得要找到一束光1 天前
git详细命令
git·github