LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-scp

Copy files to a remote Git repository via scp

TLDR

Copy a single file to a remote
$ git scp [remote] [path/to/file]
copy
Copy multiple files to a remote
$ git scp [remote] [file1] [file2]
copy
Copy a file to a specific branch on remote
$ git scp [remote] [path/to/file] --branch [branch_name]
copy

SYNOPSIS

git scp remote files...

DESCRIPTION

git scp copies files to a Git remote using scp. Part of git-extras, it uses the remote's URL from your Git configuration to determine the host and path, then transfers files via scp. To copy files from a remote, use git rscp instead.

SEE ALSO

git-rscp(1), scp(1), git-extras(1)

Copied to clipboard
Kai