git lsf server

The Server

Git LFS needs a URL endpoint to talk to a remote server. A Git repository can have different Git LFS endpoints for different remotes. Here is the list of rules that Git LFS uses to determine a repository's Git LFS server:

Git lfs 需要一个 url 根路径 来和远端服务器通信。 一个git 仓库可以针对不同的远端服务器,配置不同的url 根路径。下面是git lfs 用来配置远端服务器的规则:

The lfs.url string.

The remote.{name}.lfsurl string.

Append /info/lfs to the remote URL. Only works with HTTPS URLs. Git LFS runs two git config commands to build up the list of values that it uses: 用下面两个命令来配置

git config -l -f .gitconfig - This file is checked into the repository and can set defaults for every user that clones the repository. git config -l - A user's local git configuration can override any settings from .gitconfig.

Here's a sample Git config file with the optional remote and Git LFS configuration options: 配置的例子

[core]
  repositoryformatversion = 0
[lfs]
  url = "https://github.com/github/git-lfs.git/info/lfs"
[remote "origin"]
  url = https://github.com/github/git-lfs
  fetch = +refs/heads/*:refs/remotes/origin/*
  lfsurl = "https://github.com/github/git-lfs.git/info/lfs"

Git LFS uses git credential to fetch credentials for HTTPS requests. Setup a credential cache helper to save passwords for future users.

git lfs使用git credential 来得到https请求的crendential。 可以配置一个credential cache helper来帮助存储用户的密码

转载于:https://my.oschina.net/zsjasper/blog/424670

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值