git scp

Copy files from the current working tree to the working directory of a remote repository. Part of git-extras. Uses rsync to transfer files. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-scp.

git scp {{remote_name}}

git scp {{remote_name}} HEAD

git scp {{remote_name}} HEAD~1

git scp {{remote_name}} {{path/to/file1 path/to/file2 ...}}

git scp {{remote_name}} {{path/to/directory}}