1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00

git-{count, count-objects, cp}: add Chinese translation (#16114)

This commit is contained in:
Ziqiang Wu 2025-04-06 15:01:04 +08:00 committed by GitHub
parent cdab6888cf
commit b39f485fc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# git count-objects
> 统计未打包对象数量及其磁盘占用情况。
> 更多信息:<https://git-scm.com/docs/git-count-objects>.
- 统计所有对象并显示总磁盘使用量:
`git count-objects`
- 统计所有对象并以易读格式显示总磁盘使用量(如KB/MB):
`git count-objects --human-readable`
- 显示详细统计信息(包括对象类型细分):
`git count-objects --verbose`
- 以易读格式显示详细统计信息:
`git count-objects --human-readable --verbose`

View file

@ -0,0 +1,13 @@
# git count
> 统计提交总数。
> 属于 `git-extras` 的一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-count>.
- 显示当前分支的提交总数:
`git count`
- 显示所有贡献者的提交数及总提交数(按作者统计):
`git count --all`

13
pages.zh/common/git-cp.md Normal file
View file

@ -0,0 +1,13 @@
# git cp
> 复制 Git 仓库中的文件并保留历史记录。
> 属于 `git-extras` 的一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-cp>.
- 在当前 Git 仓库下复制文件,保留在同一目录:
`git cp {{原文件名}} {{新文件}}`
- 复制文件到其他目录
`git cp {{路径/到/源文件}} {{路径/到/新文件}}`