git scp
all
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 info →Examples (5)
Copy unstaged files to a specific remote
git scp remote_nameCopy staged and unstaged files to a remote
git scp remote_name HEADCopy files that has been changed in the last commit and any staged or unstaged files to a remote
git scp remote_name HEAD~1Copy specific files to a remote
git scp remote_name path/to/file1 path/to/file2 ...Copy a specific directory to a remote
git scp remote_name path/to/directorymade by @shridhargupta | data from tldr-pages