一、一行显示 commit-ID 分支名 提交说明
branch_name=`git branch --show-current`; curr_commit_ID=`git log -1 --format="%H %s"`; echo "$branch_name $curr_commit_ID"
二、%H %s 更多的参数说明:
https://www.cnblogs.com/wutou/p/17538388.html
branch_name=`git branch --show-current`; curr_commit_ID=`git log -1 --format="%H %s"`; echo "$branch_name $curr_commit_ID"
https://www.cnblogs.com/wutou/p/17538388.html