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

git-{commit-tree, commits-since, contrib}: add Chinese translation (#16108)

This commit is contained in:
Ziqiang Wu 2025-04-12 15:49:09 +08:00 committed by GitHub
parent b8f359afa0
commit 1bb67128e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# git commit-tree
> 用于创建提交对象的底层工具。
> 参考: `git commit`.
> 更多信息:<https://git-scm.com/docs/git-commit-tree>.
- 创建带有指定提交信息的提交对象:
`git commit-tree {{树对象哈希}} -m "{{提交信息}}"`
- 从文件读取提交信息创建提交对象(使用 `-` 表示从标准输入读取):
`git commit-tree {{树对象哈希}} -F {{路径/到/文件}}`
- 创建 GPG 签名过的提交对象:
`git commit-tree {{树对象哈希}} -m "{{提交信息}}" --gpg-sign`
- 创建指定父提交的提交对象:
`git commit-tree {{树对象哈希}} -m "{{提交信息}}" -p {{父提交哈希}}`

View file

@ -0,0 +1,21 @@
# git commits-since
> 显示从指定时间点以来的提交记录。
> 属于 `git-extras` 一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-commits-since>.
- 显示从昨天以来的所有提交:
`git commits-since {{yesterday}}`
- 显示从上周以来的所有提交:
`git commits-since {{last week}}`
- 显示从上个月以来的所有提交:
`git commits-since {{last month}}`
- 显示从昨天下午2点以来的所有提交:
`git commits-since {{yesterday 2pm}}`

View file

@ -0,0 +1,9 @@
# git contrib
> 显示指定作者的提交记录。
> 属于 `git-extras` 一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-contrib>.
- 显示指定作者的所有提交哈希及对应提交信息:
`git contrib {{作者名}}`