git scp
Copy files from the current working tree to the working directory of a remote repository. Part of
git-extras. Usesrsyncto transfer files. More information: https://github.com/tj/git-extras/blob/main/Commands.md#git-scp.
- Copy unstaged files to a specific remote:
git scp
- Copy staged and unstaged files to a remote:
git scp HEAD
- Copy files that has been changed in the last commit and any staged or unstaged files to a remote:
git scp HEAD~1
- Copy specific files to a remote:
git scp
- Copy a specific directory to a remote:
git scp
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
