git 一行显示 commit-ID 分支名 提交说明

悟透 / 2023-08-19 / 原文

一、一行显示 commit-ID 分支名 提交说明

branch_name=`git branch  --show-current`; curr_commit_ID=`git log -1 --format="%H %s"`; echo "$branch_name $curr_commit_ID"

image


二、%H %s 更多的参数说明: