Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

A custom transfer agent for git-lfs that uses rclone to transfer files.

License

Notifications You must be signed in to change notification settings

funatsufumiya/git-lfs-agent-rclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-lfs-agent-rclone

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.

Usage

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>
  1. tell git-lfs to use the transfer agent named "rclone"
  2. tell git-lfs what the name of the program is of the transfer agent
  3. $DESTINATION is the destination to which rclone will copy files tracked by git-lfs when running $ git pull and the place it will store files when running $ git push
  • NOTE: $DESTINATION can be set to anything rclone understands. As an example, source:/home/git/my-lfs-files ships files to a remote server over rclone.

Install

Clone the source and run:

$ cargo install --path .

About

A custom transfer agent for git-lfs that uses rclone to transfer files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published