How to manage the version number in Git?

后端 未结 4 556
自闭症患者
自闭症患者 2020-12-23 11:33

Let\'s imagine the blerp command line tool maintained on git. This tool has the (hidden) --version option which returns its version (let\'s say 0.1.2

4条回答
  •  被撕碎了的回忆
    2020-12-23 11:51

    Revision numbers should be maintained by you, not by git. As, opposed to SVN, you don't have a incremental revision number growing on each commit, there's no way out of the box to git to contextualize what your version is.

提交回复
热议问题