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