给github上已有的仓库上传大型文件
给github上已有的仓库上传大型文件:
在D盘Shift+右键选择,Git Bash Here,然后运行如下代码:
代码:
git clone [https://github.com/你的用户名/仓库名.git](https://github.com/%E4%BD%A0%E7%9A%84%E7%94%A8%E6%88%B7%E5%90%8D/%E4%BB%93%E5%BA%93%E5%90%8D.git)
cd 仓库名
git add 文件名(多个文件中间用空格隔开)
git commit -m "上传说明"
git push origin main
代码运行完之后可以删除仓库名对应的文件夹
代码实例:
git clone https://github.com/meiduofei/NotionNext.git
cd NotionNext
git add next-build.zip yarn.lock
git commit -m "上传 next-build.zip 和 yarn.lock 文件"
git push origin main
评论已关闭