What is a Git Revision Expression?

后端 未结 4 1528
野性不改
野性不改 2021-01-30 13:33

So, I am using Git GUI to make a repository. But I cant find ANY trace on Google, the Documentation, or anywhere else what a \'Revision Expression\' is, and it is required to cr

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 13:49

    Another case, when using Emacs: Just type Ctrl-x v l to list all revisions. For a newbie to git (but not to Emacs/CVS) I was surprised to see that revisions are listed as:

    commit 8d5ab12cd76d5e6098e5894c8713ec605fd9f153
    

    It's definitely a refreshing change from the Major.minor.bugfix.build notation.

    What's more (pleasantly) surprising is that Emacs handles git automatically without any need for me to tell it (via .emacs) that it needs to refer to git instead of CVS. Pretty amazing.

    So to summarize, when Emacs prompts for a revision, just enter that 40 hex-digit number.

提交回复
热议问题