mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
13 lines
386 B
Markdown
13 lines
386 B
Markdown
# git cp
|
|
|
|
> 复制 Git 仓库中的文件并保留历史记录。
|
|
> 属于 `git-extras` 的一部分。
|
|
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-cp>.
|
|
|
|
- 在当前 Git 仓库下复制文件,保留在同一目录:
|
|
|
|
`git cp {{原文件名}} {{新文件}}`
|
|
|
|
- 复制文件到其他目录
|
|
|
|
`git cp {{路径/到/源文件}} {{路径/到/新文件}}`
|