Skip to content

git-{cola, column, commit-graph}: add Chinese translation #16107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pages.zh/common/git-cola.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# git cola

> 功能强大且界面直观的 Git 图形化界面工具。
> 更多信息:<https://git-cola.readthedocs.io>.

- 启动图形界面:

`git cola`

- 以修订模式启动图形界面:

`git cola --amend`

- 提示选择 Git 仓库(默认为当前目录):

`git cola --prompt`

- 打开指定路径的 Git 仓库:

`git cola --repo {{路径/到/git仓库}}`

- 在状态组件中应用路径过滤器:

`git cola --status-filter {{过滤器}}`
16 changes: 16 additions & 0 deletions pages.zh/common/git-column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# git column

> 以列格式显示数据。
> 更多信息:<https://git-scm.com/docs/git-column>.

- 将标准输入内容格式化为多列显示:

`ls | git column --mode={{column}}`

- 以最大宽度 `100` 的列格式显示标准输入内容:

`ls | git column --mode=column --width={{100}}`

- 以最大边距 `30` 的列格式显示标准输入内容:

`ls | git column --mode=column --padding={{30}}`
16 changes: 16 additions & 0 deletions pages.zh/common/git-commit-graph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# git commit-graph

> 生成和验证 Git 提交图文件。
> 更多信息:<https://git-scm.com/docs/git-commit-graph>.

- 为仓库本地 `.git` 目录中的打包提交生成提交图文件:

`git commit-graph write`

- 生成包含所有可达提交的提交图文件:

`git show-ref --hash | git commit-graph write --stdin-commits`

- 生成包含当前提交图文件中所有提交以及从 `HEAD` 可达提交的提交图文件(追加模式):

`git rev-parse {{HEAD}} | git commit-graph write --stdin-commits --append`