A custom transfer agent for git-lfs
that uses rclone
to transfer files.
This is useful if you do not want to install a git-lfs
server.
Configure your local git repository as follows
$ git config lfs.standalonetransferagent rclone <1>
$ git config lfs.customtransfer.rclone.path git-lfs-agent-rclone <2>
$ git config lfs.customtransfer.rclone.args $DESTINATION <3>
- tell
git-lfs
to use the transfer agent named "rclone" - tell
git-lfs
what the name of the program is of the transfer agent $DESTINATION
is the destination to whichrclone
will copy files tracked bygit-lfs
when running$ git pull
and the place it will store files when running$ git push
- NOTE:
$DESTINATION
can be set to anythingrclone
understands. As an example,source:/home/git/my-lfs-files
ships files to a remote server overrclone
.
Clone the source and run:
$ cargo install --path .