What is a git “Snapshot”?

后端 未结 8 628
孤城傲影
孤城傲影 2020-12-04 12:01

The official Git doc says:

$ git diff test

This will show you what is different between your current working directory and the snapsh

8条回答
  •  情深已故
    2020-12-04 12:33

    Firstly, that's not the official git documentation. It's a community-authored book. While it is probably fairly authoritative, it isn't gospel.

    AFAIK, "snapshot" doesn't have any formal meaning in git. Certainly the git diff manpage doesn't mention it. In the given context, it is probably an informal reference to how the "test" branch is being used in the examples within the book, i.e., as a snapshot of ongoing work, for testing purposes.

提交回复
热议问题