Juan Garcia
Juan Garcia

Reputation: 23

How to create a git local server that uses git lfs

A have a rasberry pi(Debian) with a local git server in it. I was able to push normal files to the repo but when I try to push big files it gives me this error.

batch request: bash: git-lfs-authenticate: command not found: exit status 127

Im connection to the rasberry via ssh. I have installed in both sides git lfs (maybe I did it wrong)

I was able to use git lfs to push into GitHub but not into my local server. Do I have to create a different type of server of just with the git one should work;

Upvotes: 1

Views: 1711

Answers (1)

bk2204
bk2204

Reputation: 76599

Git and Git LFS are two separate projects. Git includes a server which can be used over the SSH protocol, but Git LFS does not.

There are two possible approaches for using Git LFS over SSH. The older form uses a program called git-lfs-authenticate, which provides authentication for an HTTP server, and then the data is uploaded over HTTP or HTTPS. If you're using Git LFS 3.0 or newer on the client side, it also supports a pure SSH protocol using the git-lfs-transfer program. While Git LFS does not include that program, the reference implementation is written in Rust and can be built with cargo install scutiger-lfs (which can be adjusted to install where you'd like it to be located). That program will need to be installed on the server side in the PATH for it to be available.

Upvotes: 3

Related Questions