10. 推荐免费 Git 仓库

Git 免费仓库

国外常用仓库

GitHub【国内访问不太稳定】
Bitbucket | Git solution for teams using Jira【国内访问不太稳定】

not

垃圾 GitLab 已停止为中国用户服务,要求极狐(收费)


附加:

微软 Azure Repos - 为项目获取无限制、云托管的专用 Git 存储库

Git 启用上传大文件功能

根据 2019 年的统计数据,如果简单使用 git 来上传大文件的话,也不是不可以。

  • coding 30 MB
  • 阿里云效 50 MB
  • 码云 最大为 100 MB

coding 提供了 文件网盘功能,普通用户提供了高达 30GB 的容量。

使用 Git LFS 上传大文件

下载和安装 Git LFS

让本地新仓库支持 Git LFS

1
2
3
4
5
6
7
8
9
10
# 初始化一个仓库
$ mkdir big-repo
$ cd big-repo
$ git init
Initialized empty Git repository in /Users/dyrone/big-repo/.git/
# 让仓库支持 LFS
$ git lfs install
Updated pre-push hook.
Git LFS initialized.
# install成功后,仓库的 pre-push 钩子将被替换和生效

想了解更多 Git Large File Storage 的内容,可以参考 https://git-lfs.github.com/