我们如何在每次推送时使用git更改版本(每个+1)?
例如我有一个2 php文件
libs/lib1.php
libs/lib2.php
Run Code Online (Sandbox Code Playgroud)
在每个标题上通常都有一些信息
/**
* LIB1.PHP
* this libs does something like this
* and that this is a doc for you
* @version 145
* @todo something todo
* @author DAMS
*/
/**
* LIB2.PHP
* this libs does something like this
* and that this is a doc for you
* @version 445
* @todo something todo
* @author DAMS
*/
Run Code Online (Sandbox Code Playgroud)
每次推送时我们可以搜索并添加+1版本吗?
我在网上搜索了有关如何在本地计算机上实现更新后挂钩的信息,但是我什么都没找到!特别是从PHPStorm 3.0更新svn副本后,我想触发该钩子。我写了一个phing build.xml,它将处理svn自动更新后要执行的任务。任何的想法 ?提前输入!
PS:我们的本地计算机运行Win7。