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

相关推荐
wflynn6 小时前
GitHub 日榜趋势速报 | 2026-11-18
开源·github
Hvitur7 小时前
Git - 多分支合并
git·github
laoyeye83112 小时前
手写 vLLM 分页 KV Cache(三):引用计数、写时复制(CoW)与前缀缓存
人工智能·github
一条Go14 小时前
边缘 Agent:为什么是它连出来,而不是平台连进去
后端·架构·github
一条Go14 小时前
开源新生代雷达 · 第 15 期
github
OpenTiny社区15 小时前
我用Vue 100%复制DeepSeek开源的网页App,代码更少,功能还更多!
前端·vue.js·github
Bigger16 小时前
我扒了 GitHub Trending 前 20,8 个在做同一件事:给 Coding Agent 造基础设施
开源·github·ai编程
徐小夕17 小时前
MedDoc AI:把临床书写、协作、质控、知识问答装进一个工作台
前端·vue.js·github
cong_18 小时前
🐟 我把摸鱼岛重写了!现在群聊还能装进一张表格
前端·后端·github
wflynn18 小时前
GitHub 今日推荐|rust-anything:录制真实输入输出,渐进式重写热点函数到 Rust
rust·开源·github·cli·claude-code·agent-skills