Copy specific files to a remote

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>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install git scp on any operating system with command-not-found.com