git获取已提交信息的commit-id,commit_message

commit_id=git log --pretty="%H" ${repo_manifest_xml}
commit_message=git log --pretty=format:"%s" -1 ${commit_id}
committed_at=git log --pretty=format:"%ai" -1 ${commit_id} | awk -F ' ' '{print $1" "$2}'

猜你喜欢

转载自blog.csdn.net/qq_40804558/article/details/130685134