Linux command
git-scp 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Copy a single file to a remote
git scp [remote] [path/to/file]
Copy multiple files to a remote
git scp [remote] [file1] [file2]
Copy a file to a specific branch on remote
git scp [remote] [path/to/file] --branch [branch_name]
说明
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.
FAQ
What is the git-scp command used for?
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.
How do I run a basic git-scp example?
Run `git scp [remote] [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more git-scp examples?
This page includes 3 examples for git-scp, plus related commands for nearby Linux tasks.