add new chinese translations
This commit is contained in:
16
pages.zh/common/git-mv.md
Normal file
16
pages.zh/common/git-mv.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# git mv
|
||||
|
||||
> 移动或重命名文件并更新 Git 索引。
|
||||
> 更多信息:<https://git-scm.com/docs/git-mv>。
|
||||
|
||||
- 在仓库内移动文件,并将此操作添加到下一个提交:
|
||||
|
||||
`git mv {{path/to/file}} {{new/path/to/file}}`
|
||||
|
||||
- 重命名文件或目录,并将此操作添加到下一个提交:
|
||||
|
||||
`git mv {{path/to/file_or_directory}} {{path/to/destination}}`
|
||||
|
||||
- 如果目标路径中存在文件或目录,则覆盖它:
|
||||
|
||||
`git mv --force {{path/to/file_or_directory}} {{path/to/destination}}`
|
Reference in New Issue
Block a user