How do I enable the ident string for a Git repository?
问题 How do I enable ident $Id$ on files in a Git repository? 回答1: Summary: The recommended way of embedding version information in a product is to use the build system for that; see below for details and alternate approaches. In Git (and I think usually also in other VCS systems with atomic commits) there is no such thing like version of a single file . Git does support on-demand expansion of $Id:$ keyword, but: It is done on request only. You have to specify (perhaps using globbing pattern) that