Configure your local git repository as follows
$ git config lfs.standalonetransferagent scp (1)
$ git config lfs.customtransfer.scp.path git-lfs-agent-scp (2)
$ git config lfs.customtransfer.scp.args $DESTINATION (3)
-
tell
git-lfs
to use the transfer agent named "scp" -
tell
git-lfs
what the name of the program is of the transfer agent -
$DESTINATION
is the destination to whichscp
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 anything scp understands.
As an example, server.example.com:/home/git/my-lfs-files ships files to a remote server over ssh .
|