From f2515b3058b8df9265857689b9553921bad1a7db Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:10:50 +0200 Subject: [PATCH] git-rscp: update page (#11021) --- pages/common/git-rscp.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/common/git-rscp.md b/pages/common/git-rscp.md index 92ad56f0a..ab9a9ea8d 100644 --- a/pages/common/git-rscp.md +++ b/pages/common/git-rscp.md @@ -1,9 +1,13 @@ # git rscp -> This command is an alias of `git scp`, to copy files from the current working tree to the working directory of a remote repository. +> Reverse `git scp` - copy files from the working directory of a remote repository to the current working tree. > Part of `git-extras`. > More information: . -- View documentation for the original command: +- Copy specific files from a remote: -`tldr git scp` +`git rscp {{remote_name}} {{path/to/file1 path/to/file2 ...}}` + +- Copy a specific directory from a remote: + +`git rscp {{remote_name}} {{path/to/directory}}`