github拆分小批量上传文件

Windows端

1.把项目重置干净

Remove-Item -Recurse -Force tool/.git

2.打开文件夹
3.把里面所有东西 全部剪切移到桌面

只留 1 个小小的文件 就行

4.回到终端,依次运行

git init

PS D:\soft\github\tool> git init

Initialized empty Git repository in D:/soft/github/tool/.git/

仓库已经重置成功

git add .

git commit -m "first commit"

PS D:\soft\github\tool> git commit -m "1"

master (root-commit) da7ba8b\] 1 2 files changed, 2 insertions(+) create mode 100644 README.md create mode 文件大小 文件名 git remote add origin https://github.com/名称/文件夹名称.git //关联仓库: git push -u origin master git push --set-upstream origin master

5.成功后,再分批加文件

注意不能超过100MB

相关推荐
乐动心情3 小时前
RocksDB的代码分析报告
github
知识领航员13 小时前
蘑兔AI音乐深度实测:功能拆解、实测表现与适用场景
java·c语言·c++·人工智能·python·算法·github
morestrive17 小时前
基于 fabric.js 实现浏览器端矢量 PDF 导出
前端·github
右耳朵猫AI20 小时前
GitHub Trending 本周 Top 10
github
AlexMaybeBot20 小时前
巧用 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
研究点啥好呢1 天前
Muses | 搭建属于你自己的AI生图网站
前端·人工智能·ai·github