github拆分小批量上传文件
📅 2026/7/5 6:42:03
👁️ 阅读次数
📝 编程学习
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
编程学习
技术分享
实战经验