git 指令操作

清除 master git 

git reset --hard origin/master

取最新的 tag version

git describe --tags  `git rev-list --tags --max-count=1`

參考 

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