Reputation: 1715
From Microsoft documentation:
Git LFS is an extension to Git which commits data describing the large files in a commit to your repo, and stores the binary file contents into separate remote storage.
This sounds great, however I could not find anywhere how I can setup that remote storage? The whole point for us would be to not be using the same drive as our TFS server for binary files, which seems feasible with Git-LFS. I am pretty new to Git, we want to move from TFSVC to Git but keep TFS for the rest.
Upvotes: 0
Views: 1995
Reputation: 31083
You may check the documentation below:
By default, the Git Large File Storage client stores large assets on the same server that hosts the Git repository. But you can configuring Git Large File Storage to use a third party server. Try creating a Git LFS configuration file that points to the third party server:
# Show default configuration
$ git lfs env
> git-lfs/1.1.0 (GitHub; darwin amd64; go 1.5.1; git 94d356c)
> git version 2.7.4 (Apple Git-66)
> Endpoint=https://GITHUB-ENTERPRISE-HOST/path/to/repo/info/lfs (auth=basic)
# Create .lfsconfig that points to third party server.
$ git config -f .lfsconfig remote.origin.lfsurl https://THIRD-PARTY-LFS-SERVER/path/to/repo
$ git lfs env
> git-lfs/1.1.0 (GitHub; darwin amd64; go 1.5.1; git 94d356c)
> git version 2.7.4 (Apple Git-66)
> Endpoint=https://THIRD-PARTY-LFS-SERVER/path/to/repo/info/lfs (auth=none)
# Show the contents of .lfsconfig
$ cat .lfsconfig
[remote "origin"]
lfsurl = https://THIRD-PARTY-LFS-SERVER/path/to/repo
Upvotes: 1