What are commit-ish and tree-ish in Git?

前端 未结 2 912
面向向阳花
面向向阳花 2020-11-27 09:59

The Question

What are specific examples of commit-ish and tree-ish in Git?

The Stack Overflow question \"What does tree-ish mean in git?\" deals with tree-

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 10:24

    Note for non-native English [sic!] speakers: "-ish" is a suffix that can be applied to an adjective in order to indicate "having qualities like" or "slightly" - see http://chambers.co.uk/search/?query=ish&title=21st

    Hence "tree-ish" - like a "tree" .... "commit-ish" - like a "commit"

    eg "Mars appears like a reddish star" ("d" is doubled !); "the food on the plate was not hot, but warmish"

    I believe that this helps explain "what are ..." better, in that it explains the language usage.

提交回复
热议问题