码迷,mamicode.com
首页 > 其他好文 > 详细

git lsf server

时间:2015-06-04 14:00:26      阅读:430      评论:0      收藏:0      [点我收藏+]

标签:

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来帮助存储用户的密码

git lsf server

标签:

原文地址:http://my.oschina.net/zsjasper/blog/424670

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!