Skip to content

07-git-tools/reset 翻译有误 #348

Closed
@kikyous

Description

@kikyous

https://github.com/progit/progit2-zh/blob/master/book/07-git-tools/sections/reset.asc

接着运行 git commit,它首先会移除索引中的内容并将它保存为一个永久的快照,然后创建一个指向该快照的提交对象,最后更新 master 来指向本次提交。

在阅读上面一段的时候就感觉不对,因为结合上下文git commit并不会移除索引中的内容

然后查看了一下英文原文:
Then we run git commit, which takes the contents of the Index and saves it as a permanent snapshot, creates a commit object which points to that snapshot, and updates master to point to that commit.

这里用的是takes,并没有移除的意思,所以中文翻译应该改成它首先会取得索引中的内容

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions