Skip to content

git-{clear-soft, cliff, coauthor}: add Chinese translation #16106

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
9 changes: 9 additions & 0 deletions pages.zh/common/git-clear-soft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# git clear-soft

> 将 Git 工作目录清理至如同刚克隆时的状态(不包含 `.gitignore` 中的文件)。
> 属于 `git-extras` 一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-clear-soft>.

- 重置所有已跟踪文件并删除所有未跟踪文件:

`git clear-soft`
24 changes: 24 additions & 0 deletions pages.zh/common/git-cliff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# git cliff

> 高度可定制的变更日志生成工具。
> 更多信息:<https://git-cliff.org/docs/usage/args>.

- 从 Git 仓库所有提交生成变更日志并保存到 `CHANGELOG.md` :

`git cliff > {{CHANGELOG.md}}`

- 从最新标签之后的提交生成变更日志并输出到标准输出:

`git cliff {{[-l|--latest]}}`

- 为当前标签对应的提交生成变更日志(需先使用 `git checkout` 检出到一个标签):

`git cliff --current`

- 为尚未打标签的提交生成变更日志:

`git cliff {{[-u|--unreleased]}}`

- 在当前目录生成默认配置文件 `cliff.toml` :

`git cliff {{[-i|--init]}}`
9 changes: 9 additions & 0 deletions pages.zh/common/git-coauthor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# git coauthor

> 为最新提交添加共同作者(会重写 Git 历史,下次推送需使用 `--force` 选项)。
> 属于 `git-extras`一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-coauthor>.

- 为最新提交添加共同作者:

`git coauthor {{作者姓名}} {{作者邮箱}}`