git lfs安装的问题

git lfs
Git LFS 即Git LFS(Large File Storage, 大文件存储)是可以把音乐、图片、视频等指定的任意文件存在 Git 仓库之外,而在 Git 仓库中用一个占用空间 1KB 不到的文本指针来代替的小工具。通过把大文件存储在 Git 仓库之外,可以减小 Git 仓库本身的体积,使克隆 Git 仓库的速度加快,也使得 Git 不会因为仓库中充满大文件而损失性能,是git存储获取大文件的一种新方法。

git lfs安装centos/ubuntu

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo yum install git-lfs

git lfs install
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
sudo apt-get install git-lfs

问题

curl步骤时出现

Detected operating system as ubuntu/16.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/github/git-lfs/config_file.repo?os=ubuntu&dist=16&source=script
bash: line 153: /etc/yum.repos.d/github_git-lfs.repo: No such file or directory

Unable to run: 
    curl https://packagecloud.io/install/repositories/github/git-lfs/config_file.repo?os=ubuntu&dist=16&source=scriptDouble check your curl installation and try again.

解决方法

check your curl installation and try again.重新运行curl步骤多试几次直到出现

The repository is setup! You can now install packages.
继续安装步骤

你可能感兴趣的:(git,github)