git 指令操作

清除 master git 

git reset --hard origin/master

取最新的 tag version

git describe --tags  `git rev-list --tags --<span class="hljs-built_in">max</span>-<span class="hljs-built_in">count</span>=<span class="hljs-number">1</span>`

參考 

https://medium.com/@mohamed3laa/how-to-add-new-git-tag-release-automatically-through-jenkins-file-1a9d2a370d30