新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
如何進行DevOps中的git日志信息解讀
這篇文章給大家介紹如何進行DevOps中的git日志信息解讀,內(nèi)容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務,包含不限于成都做網(wǎng)站、成都網(wǎng)站制作、梁園網(wǎng)絡推廣、成都小程序開發(fā)、梁園網(wǎng)絡營銷、梁園企業(yè)策劃、梁園品牌公關、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務,您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)公司為所有大學生創(chuàng)業(yè)者提供梁園建站搭建服務,24小時服務熱線:028-86922220,官方網(wǎng)址:www.cdcxhl.com
DevOps之git日志信息解讀
1 版本信息
echo "解讀commit數(shù)據(jù)進行鏡像版本指定"$current_git_branch_latest_id=`git rev-parse HEAD`$current_git_branch_latest_short_id=`git rev-parse --short HEAD`$echo current git branch latest commit id=$current_git_branch_latest_id$echo current git branch latest commit short $id=$current_git_branch_latest_short_id# 提交的commit信息$echo $id
2 提交作者
$author=`git log --pretty=format:“%an” $current_git_branch_latest_id -1`$echo $author
3 提交時間
$date=`git log --pretty=format:“%cd” $current_git_branch_latest_id -1`$echo $date
4 提交message
$message=`git log --pretty=format:“%s” $current_git_branch_latest_id -1`$echo $message
5 完整信息
$current_git_branch_latest_id=`git rev-parse HEAD`$current_git_branch_latest_short_id=`git rev-parse --short HEAD`$echo current git branch latest commit id=$current_git_branch_latest_id$echo current git branch latest commit short $id=$current_git_branch_latest_short_id
版本解析的問題,對于CI/CD系統(tǒng)建設具有十分重要的作用,研制Devops開發(fā)流程,實現(xiàn)代碼的中間操作,完成對于代碼的定制,具有十分重要的作用。
關于如何進行DevOps中的git日志信息解讀就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
分享題目:如何進行DevOps中的git日志信息解讀
網(wǎng)站網(wǎng)址:http://fisionsoft.com.cn/article/ipcgjc.html