# git cp > 将现有文件复制到新位置,保留历史记录。 > 属于 `git-extras`。 > 更多信息:。 - 在 Git 仓库中复制现有文件,保持在同一目录下: `git cp {{file}} {{new_file}}` - 在 Git 仓库中复制现有文件并将其放置在其他位置: `git cp {{path/to/file}} {{path/to/new_file}}`